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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ruchi SharavatRank #1,714 · 885 reputationPosted Oct 11, 2018, 3:23 AM EDT
Ruchi SharavatRank #1,714 · 885 reputationPosted Oct 11, 2018, 2:49 AM EDT
Udit ChauhanRank #3,035 · 475 reputationPosted Oct 11, 2018, 2:52 AM EDT
Udit ChauhanRank #3,035 · 475 reputationPosted Oct 11, 2018, 4:08 AM EDT
- string value = "5.5";
- PropertyInfo propertyInfo = yourobject.GetType().GetProperty("yourproperty");
- propertyInfo.SetValue(yourobject, value, null);
"