U
Undergrid
Given the following example class:
public class genericClass<T>
{
public genericClass() {}
public genericClass(IEnumerable<T> a) { /* do something with a
*/ }
public genericClass(T b) { /* do something with b */ }
}
And the following code:
Type t = typeof ( genericClass<testClass> );
Is there anyway to call t.GetConstructor to get the ConstructorInfo
about the constructor genericClass(IEnumerable<T> a) ? At the point I
want to call GetConstructore I also have a Type class describing
testClass if that helps.
Thanks
Nick
public class genericClass<T>
{
public genericClass() {}
public genericClass(IEnumerable<T> a) { /* do something with a
*/ }
public genericClass(T b) { /* do something with b */ }
}
And the following code:
Type t = typeof ( genericClass<testClass> );
Is there anyway to call t.GetConstructor to get the ConstructorInfo
about the constructor genericClass(IEnumerable<T> a) ? At the point I
want to call GetConstructore I also have a Type class describing
testClass if that helps.
Thanks
Nick