Multiple ref Parameters

Discussion in 'C#' started by kendaop, Aug 28, 2010.

  1. kendaop

    kendaop New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Simple question: Is having multiple 'ref' parameters allowed in the same method? For example,

    private void RouletteSelection(ref Chromosome child1, ref Chromosome child2)
    {
    ...
    ...
    ...
    }
    I'm not getting any compiler or runtime errors, but the output I'm getting suggests there may be a problem with this method signature.

    Thanks for your help.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice