This question already has an answer here:
- Setting value in an array via reflection 2 answers
I created an array using reflection
var obj = Array.CreateInstance(propertyInfo.FieldType,len);
I want to set obj[0]
to some value, how should I do it?
Aucun commentaire:
Enregistrer un commentaire