I am trying to get the properties of instance which is of List collection type as like below code:
List cars = new List(){ "Volvo", "BMW", "Ford", "Mazda" }; PropertyDescriptorCollection propertyDescriptors = TypeDescriptor.GetProperties(cars);
But, i am getting only the default properties (Capacity and Count) of List type. Instead of default properties, i need to retrieve Volvo, BMW properties in PropertyDescriptorCollection. Can anyone please suggest solution regarding this query.
Aucun commentaire:
Enregistrer un commentaire