C# Reflection, IList method "Remove" not found
===

I have a instandObject from MyClass. 

    public partial class MyClass  
    {
        public virtual string PropertyName1 { get; set; }
        public virtual IList<Class2List> Class2Lists{ get; set; }
    }


Another code is:

      object obj1 = myClassObject;
      Type type = obj1.GetType();
      Type typeSub = type.GetProperty("Class2Lists").PropertyType; 

      //MethodInfo methodRemove = typeSub.GetMethod("Remove"); //this method can not find

      MethodInfo methodRemove = typeSub.GetMethod("RemoveAt"); // this method can find

      //MethodInfo[] methodRemove = typeSub.GetMethods(); // there is no "Remove" method in the list
     

Why no "Remove" in the IList?


Chanthy Ngin
