T
tadmill
Is it possible to pass a generic parameter of the same class to to its
constructor, where the "T" type passed in the constructor is different
than the "T" type of the instanced class?
ie,
public class SomeList<T>
{
public SomeList(SomeList<T> thisSomeList)
{
//another SomeList<T> where the T is different type
}
}
This may reveal my relatively new understanding of class generics, but
I didn't find a similar post.
TIA
Terry
constructor, where the "T" type passed in the constructor is different
than the "T" type of the instanced class?
ie,
public class SomeList<T>
{
public SomeList(SomeList<T> thisSomeList)
{
//another SomeList<T> where the T is different type
}
}
This may reveal my relatively new understanding of class generics, but
I didn't find a similar post.
TIA
Terry