M
Michi Henning
Jay B. Harlow said:However! you have not proven that an Interface inherits from System.Object.
If anything the other leg of this thread on Reflection reinforces my point.
My point is that within VB.NET (.NET really) interfaces DO NOT inherit from
System.Object. This is not a bug, this is how Interfaces have been defined
in VB.NET.
That is how VB.NET behaves yet (even though its specification says the
opposite).
Further that C# makes it appear that they do as a benefit for developers, C#
can do this because it knows that you need an object to implement the
Interface, not because the interface inherits from System.Object.
But VB.NET knows the same thing, doesn't it? In VB.NET, I also need an
object to implement the interface. At run time, a reference is either
null or it points at an instantiated object. All objects provide the methods on
System.Object, meaning that there is no reason to prohibit invoking methods
on System.Object via an interface reference.
Cheers,
Michi.