samedi 16 avril 2016

How to get underlying type of generic interface?

public class TestBase
{
    // implementation
}
public class Test : ICollection<TestBase>
{
    // implementation
}

Somewhere else I have a property of the Test type:

public Test Test {get;set;}

How can I get the underlying type of the ICollection that the Test inherits from?





Aucun commentaire:

Enregistrer un commentaire