Re: Overloading 101 quesiton

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



As Dustin caught in my reply, I didn't mean creating overloaded
methods that differ only by reference or value, but calling methods
that are overloaded with the only difference in signature by parameter
reference/value. In his replies, he states that VB.Net cannot
distinguish between them. In my reply, this is because there is no
"ref" keyword that you can specify when calling the method. ByRef and
ByVal are for creating the signature, not calling the method (afaik, I
haven't tested it, but I am pretty sure this is true).

You're correct. It is true that VB doesn't have any keyword to do this.

Best Regards,
Dustin Campbell
Developer Express Inc.


.



Relevant Pages

  • Re: The Windows Genuine Advantage Notification
    ... MS expects its paying customers to work for them for free to catch pirates instead of calling the legal authorities to do the job. ... It would probably be more correct to say "MS assumes that pirates and thieves are using illegal software", and is trying to find out whether you are one of those. ... calling in to the Microsoft WGA forum requires a Passport login ... It compares a locally generated and locally stored signature with a newly computed signature, using the same method on what is supposed to be the same computer; if they differ, the computer might be a bad one. ...
    (microsoft.public.windowsupdate)
  • passing by reference in j# for Whidbey
    ... variables by reference, the attribute tag must be applied while declaring the ... I think this is bad code convention. ... there should be a marker when calling a function ... Calling without the ampersand should throw a compiler error. ...
    (microsoft.public.dotnet.vjsharp)
  • Re: arraylist.clear
    ... >> And how do I make this vaiable last forever eventhough I need to ... >> clear it for undetermined periods of time? ... > Calling ArrayList.Clearjust clears the contents of that ArrayList. ... > It does nothing to the variable holding a reference to the list itself. ...
    (microsoft.public.dotnet.framework.performance)
  • debug build crashes when calling managed code
    ... In the debugger, when we call one of their APIs (we're calling a method on a ... The method we're calling takes a reference to an instance ... the stack and then call the method providing a reference to that instance. ...
    (microsoft.public.vc.language)
  • Re: Are global variable evil?
    ... calling c# dlls and I've yet to find a need for the so called global ... But before you get global happy and start passing everything you ... could it belong as a property in a class and could a reference ...
    (microsoft.public.dotnet.languages.csharp)