Hi,
PLease anybody tell me that how to look up in class to check property and how to set value in that property.
Please explain using example.
Thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ruchi SharavatPosted Oct 11, 2018, 7:23 AM
Udit ChauhanPosted Oct 11, 2018, 8:08 AM
- string value = "5.5";
- PropertyInfo propertyInfo = yourobject.GetType().GetProperty("yourproperty");
- propertyInfo.SetValue(yourobject, value, null);
"Udit ChauhanPosted Oct 11, 2018, 6:52 AM
Ruchi SharavatPosted Oct 11, 2018, 6:49 AM