Hi guys, Im 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, Ill "inherit" this functionality by using System.Convert when necessary...
My current problem is far simpler, I cant 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 Im doing wrong here. Im neither trying to Overload nor Shadow anything. Heck, this Class, as constructed so far, isnt even Inheriting anything...
Thanks in advance
,
Mike
My current problem is far simpler, I cant even get on first base! My code is as follows:
Code:
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