Are the default objects supported by
My keyword in VB.net is a kind of singleton? If not, what is the difference?
Again is this "default object" feature is something useful? If yes, then why it is not implemented in other languages like C#?
It is not a Singleton.
Visual Basic provides language/compiler support with the
Visual Basic has a somewhat different language philosophy than C# does. Originally, VB was to be the "applications" language, and C# was to be the "systems" language. Since then, the two languages have converged, and the feature sets of the two are almost indistinguishable, with a few notable differences (this being one, XML Literals being another).
I am quite certain that, if you asked Eric Lippert or one of the other members of the C# compiler team, they would tell you that implementing new features is a tug-of-war between available resources and feature importance, and that this particular feature just never hit threshold.
Navigate The .NET Framework And Your Projects With The My Namespace
Nevertheless its implementation is easy to replicate in your own