mercredi 17 juin 2020

Get the TYPE of a Collection using reflection [duplicate]

In this situation I am passing a propertyInfo that I know is an ICollection.

How can get the type of the class that the collection is of?

Type propertyType = propertyInfo.PropertyType;
Type collectionType = ????????




Aucun commentaire:

Enregistrer un commentaire