I have a property like this
When I debugged I can see that m_displayType becoming null. Can anybody tell me how to check the reason behind it? I checked all the reference of DisplayType other than this any way I missed out.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Besides debugging it and looking at the stack to see where the DisplayType is being called from, you need to make sure you are not changing the value using the m_displayType field instead of the property. You can do a find all references in VS on the m_displayType field and on the DisplayType property to see where they are used. Also, is there a reason why you are defining the m_displayType field as protected instead of private?