Re: XmlDocument.SelectNodes()

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



PiotrKolodziej <piotr.kolodziej@xxxxxxxxx> wrote:
Anyway here is first ver. of the method:

static private XmlNode checkEgsistance(ref ArrayList mList)

<snip>

Out of interest, why is that a "ref" parameter? I can't see anything
which modifies the value of the variable (as opposed to the object it
refers to).

See http://www.pobox.com/~skeet/csharp/parameters.html for more
information.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Re: Brian Kernighan, maybe Im not worthy, maybe Im scum
    ... and answer A modifies the value of x. ... within the class of which the function is a member. ... Base_class is an object of the base class? ...
    (comp.programming)
  • Re: Best Flag Of The Day
    ... if its a lying twat competition you win. ... Where is there ANY lie? ... I said SAF probably is a better ref since he ... Snip, don't snip, snip, twat, prick, snip, I won't reply, yes I ...
    (uk.sport.football.clubs.liverpool)
  • Re: improving my code: array of references
    ... are you assigning its return value to the scalar passed as a parameter? ... I think the issue is what you mean by "modifies". ... my $foo = 5 ...
    (perl.beginners)
  • Re: Best Flag Of The Day
    ... if its a lying twat competition you win. ... Where is there ANY lie? ... I said SAF probably is a better ref since he ... Snip, don't snip, snip, twat, prick, snip, I won't reply, yes I ...
    (uk.sport.football.clubs.liverpool)
  • Re: improving my code: array of references
    ... Modify_variable modifies its input variable. ... Either you should be using a array from the beginning, ... are passing by reference. ...
    (perl.beginners)