|
Hi I am using System.Reflections to analyze all the properties of an object (any class) through boxing method. Using PropertyInfo class, I am changing the values of the properties also.
Is there any method in System.Reflections, through which the set accessors of a given property could be disabled temporarily so that the value changes in that property from elsewhere could be denied through code.
I want to implement a lock feature in my code using System.Reflections so that, during application of lock, nobody could change the property value.
|