mardi 22 décembre 2015

Using index with Array reflection [duplicate]

This question already has an answer here:

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