I have a ArrayList with names of a fields in the current object, when i try to do this:
foreach(string name in array)
{
PropertyInfo property = this.GetType().GetProperty(name);
property.SetValue(this, value , null);
}
The execute is failed, and the property has no value (in SharpDevelop only says "null"). The names of the fields are OK and exists, whats happens?
Aucun commentaire:
Enregistrer un commentaire