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?
views:
89answers:
1
+2
A:
Try marking your properties with:
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
jmservera
2009-06-30 15:19:38
Thanks! That totally did it!
opedog
2009-06-30 15:35:26