I have this object propInfo (that is PropertyType) listed below that is of type ICollection and has an array of values in it.
How can I acess it's values and build a string with all of them (Strigbuilder for example)?
var propName = m.Groups[1].Value;
// returns ICollection
var propInfo = baseType.GetProperty(propName);
// Find if the prop is repetetive
if (typeof(IEnumerable).IsAssignableFrom(propInfo.PropertyType))
{
// Get the value (multiple values inside) and create a string
}
Aucun commentaire:
Enregistrer un commentaire