1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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