As we have already seen, every type in VB.NET, whether it is a value type or a reference type, ultimately inherits from the root class System.Object. The class ValueType inherits directly from Object. ValueType is the root for all value types, such as structures and simple types like Integer and Decimal.
There are four public instance methods of Object, three of which are virtual and frequently overridden by classes.
Overridable Overloads Public Function Equals( _ ByVal obj As Object) As Boolean
This method compares an object with the object passed as a parameter and returns True if they are equal. Object implements this method to test for reference equality. ValueType overrides the method ...