I was researching an answer to a question I saw earlier on SO (System.Object not defined in VB.Net) and I discovered something that seems strange. I always thought that the class "Object" which, as everyone knows, resides in the "System" namespace, was defined in the System.DLL assembly or, at the very least, in the System.Core.DLL. However, when I started searching around in the Object Browser, I learned that Object is actually defined in mscorlib.dll. The really strange thing, though, is that this assembly is not referenced anywhere in any project. Just to test this, I created a project and removed ALL references:
Surprisingly (at least to me) doing so did not break anything. I could still write a piece of code like this:
Module Module1
Sub test()
Dim x As New Object
End Sub
End Module
without any compile errors. Can someone out there kindly explain this to me?