Hi guys, I'm trying to make a very simple 'Convert' class. The idea is to Inherit & extend the System.Convert class, but, technically, that class is not Inheritable... Anyway, I'll "inherit" this functionality by using System.Convert when necessary...
My current problem is far simpler, I can't even get on first base! My code is as follows:
The result of the above is a squiggly line below the word 'ToString' and the error message reads:
Any ideas with what I'm doing wrong here. I'm neither trying to Overload nor Shadow anything. Heck, this Class, as constructed so far, isn't even Inheriting anything...
Thanks in advance ,
Mike
My current problem is far simpler, I can't even get on first base! My code is as follows:
Visual Basic:
Friend Class xoConvert
Friend Function ToString(ByVal TheObject As Object) As String
End Function
End Class
I was puzzled by this, esp. given that the same code in C# appears to be fine:Function 'ToString' shadows an overloadable member declared in the base class 'Object'. If you want to overload the base method, this method must be declared 'Overloads'.
Code:
public class xoConvert
{
public String ToString(Object TheObject)
{
}
}
Thanks in advance ,
Mike