I have class like this:
Class foo<T>
{
anotherfoo<T>;
foo(){}
foo(foo<T> aFoo)
{ anotherfoo = aFoo; }
}
void main()
{
foo<string> obj1 = new foo<string>();
foo<int> obj2 = new foo<int>(obj1);
}
This time I get a error: cannot convert from foo<string> to foo<int>.
But I need have in this class "foo" another obj foo of another type, is this possible?