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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -