In the next few months, I plan to blog about some of the new features in Visual Studio 2005 that I really like. I hope that you get as excited about these cool features as I am.
Let’s start with one of my favorites – the My namespace in Visual Basic 2005. As Duncan Mackenzie’s article on msdn points out, the My namespace acts as a speed-dial for several classes in the .NET Framework, especially those you are likely to use most often. One of the coolest things in Windows 95 was the ‘shortcut’ which allowed end users to directly go to a file, folder or application without navigating through deeply nested folders. The My namespace is quite analogous to the shortcut feature – it lets you directly access functionality without having to worry about its position in the .Net framework class hierarchy. Here are some examples.
Some beta users have asked whether My can be customized and extended. The answer is most certainly yes. The My development team intends to release white papers on this in the near future. For now, you may want to tale a look at
Some developers also wanted to know if we plan to incorporate My into C#. Although C# users cannot easily use My in C# today, they can get access to the RAD classes that MY provides by importing the Microsoft.VisualBasic.dll and Microsoft.VisualBasic namespaces. As Tyler likes to put it – ‘They (C# developers) can’t get some of the My project collections (My.Forms and My.WebServices) in the same way as VB developers but they can use the new RAD classes such as the FileSystem, Computer, Clock, Keyboard, Audio, etc.
Visual Basic has always made Rapid Application Development a priority. My certainly underscores the R in RAD. I hope it will not only delight hobbyists but also be quite useful to professional developers.
What do you think of the My namespace?