Sat, August 4, 2007, 05:08 PM under
Orcas |
VisualStudio
Recall the new C#3 and VB9 language feature
extension methods? Well, if you go into the object browser in Visual Studio 2008, there is an option to display extension methods for the chosen class. The following screenshot depicts that for the
XElement (from
XLinq):
Nice! The 3 extension methods (
Validate and
GetSchemaInfo) are actually defined in the static
System.Xml.Schema.Extensions class, but still show up where we'd expect them to.
The above screenshot is in a VB project and I cannot get this feature to work reliably for me in C# projects
yet. The option is there in both projects, but the result isn't. Here is how you enable the feature btw:
Go check it out...