Adrian Hara

Working through the .NET maze

  Home  |   Contact  |   Syndication    |   Login
  46 Posts | 0 Stories | 108 Comments | 10 Trackbacks

News

Twitter












Archives

Post Categories

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:

CodeExample

 

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

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Tuesday, June 05, 2007 4:11 PM

Feedback

# Links (6/6/2007) 6/7/2007 3:53 AM Member Blogs
.NET The Var Of The Worlds - explanation on Var using LINQ Telerik Product Support Lifecycle: Which versions

# re: Visual Studio .NET Debugger Oddity 11/6/2007 7:20 PM David
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.

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: