views:

43

answers:

1

While inspecting the the .net object model in the Object Browser window, I came across the lack of information on sealed classes.

If for instance, one navigates to the mscorlib container -> System namespace -> String class, the details pane displays the following:

public class String
     Member of System

Summary:
Represents text as a series of Unicode characters.

Attributes:
[System.Runtime.InteropServices.ComVisibleAttribute(true), System.Reflection.DefaultMemberAttribute("Chars")]

It seems I can only ascertain if a class is sealed either through the Code Definition Window or, of course, by trying to derive from it.

Yet, while following Apress - Pro C# 2008 and the .Net 3.5 Platform, by Andrew Troelsen, the author shows on page 188 how the object browser display the sealed status:

alt text

Has this information been removed from Visual Studio 2008 object browser? Could I get it back somehow?

Although the author mentions Visual Studio 2008 throughout the text, that screenshot must be from a previous version. The book is in fact in its 4th Edition, and started back in 2001 with .Net 1.0 Beta 2.

A: 

My Visual Studio 2008 does not seem to have this issue. Are you upgraded to SP1? Do you have other tools or add-ins that modify the Object Browser's functionality?

Matthew Ferreira
I'm running VS Team System 2008 - Team Suit from my MSDN subscription. It is upgraded to SP1. Could someone confirm a similar behavior under this SKU?
Krugar