Reputation: 746
In our .Net application, some of our business objects use lazy loading to access data from the server. While debugging, if I want to inspect a property I have to be very careful and not "look at" or access those properties because this causes the IDE to try and evaluate those properties, which fails. Is there an attribute I can put on those properties such that they will still display in Intellisense but not evaluated when the object is being inspected during debug-time?
Upvotes: 2
Views: 170
Reputation: 6682
Try marking your properties with:
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
Upvotes: 3