i have this
public class ClassA { public IList<ClassB> PropertyB { get; set; } = new List<ClassB>(); } public class ClassB { } var a = new ClassA().PropertyB.GetType(); var p = new ClassA().GetType().GetProperty("PropertyB").GetType(); Assert.IsTrue(a.IsGenericType);//This passes Assert.IsTrue(p.IsGenericType);//This fails
and someone explain why?