J
James Radke
Hello,
Can someone explain to me why the return value is not part of what makes up
the signature of a function?
I would love to be able to overload a function such as:
public overloads function a(x as string, y as string) as DataReader
and
public overloads function a(x as string, y as string) as DataSet
but I find that I cannot do this in vb.net since the signatures are based on
only the passed parameters (at least I couldn't in the net framework 1.0,
and I don't believe it has changed in 1.1)
Do all the .NET languages, (such as c#, etc) all use the same method for
determining the signature for overloading functions?
Thanks!
Jim
Can someone explain to me why the return value is not part of what makes up
the signature of a function?
I would love to be able to overload a function such as:
public overloads function a(x as string, y as string) as DataReader
and
public overloads function a(x as string, y as string) as DataSet
but I find that I cannot do this in vb.net since the signatures are based on
only the passed parameters (at least I couldn't in the net framework 1.0,
and I don't believe it has changed in 1.1)
Do all the .NET languages, (such as c#, etc) all use the same method for
determining the signature for overloading functions?
Thanks!
Jim