reflection - How to relate a property to its backing field C# -
i have property has own private member backing field. want able relate name of property name of backing field.
public bool addpostdatetoreference { { if (moaddpostdatetoreference.value.toupper() == "y" || moaddpostdatetoreference.value.toupper() == "t") { return true; } else { return false; } } set { if (value) { moaddpostdatetoreference.value = "y"; } else { moaddpostdatetoreference.value = "n"; } } }
when doing quick-watch in visual studio debugger, able view property addpostdatetoreference
, private member variable moaddpostdatetoreference
not relation on how connected.
Comments
Post a Comment