Geeks With Blogs
Adrian Hara Working through the .NET maze

A colleague of mine ran into this today and we scratched our heads for some time, before he figured out what was wrong. Anyway, I turned some production code into a kind of an extreme example, but what do you think of the following screenshot:



Console.WriteLine fortunately prints "Base", but what about that debugger tooltip which shows the value of the private property? [O_o]

Posted on Tuesday, June 5, 2007 4:11 PM | Back to top

Comments on this post: Visual Studio .NET Debugger Oddity

# Links (6/6/2007)
Requesting Gravatar...
.NET The Var Of The Worlds - explanation on Var using LINQ Telerik Product Support Lifecycle: Which versions
Left by Member Blogs on Jun 07, 2007 3:53 AM

# re: Visual Studio .NET Debugger Oddity
Requesting Gravatar...
The debugger can access private members while the Program class can only access the internal or public members of the class Derived1. More care should be taken when introducing "new" members to prevent "oddities" like this.
Left by David on Nov 06, 2007 7:20 PM

Your comment:
 (will show your gravatar)

Copyright © Adrian Hara | Powered by: