when you put out in the parameter what does it mean?

Forum Archive when you put out in the parameter what does it mean?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7997

    i am guessing this would pass the  reference of the object and we are only saying that the function will return an instance of the object as a result… but i am rusty on c#, i don’t actually remember this syntax 

     

    #27988
    Jonathan Gonzalez
    Participant

      Yes that’s basically it. We’re passing the reference. If I remember correctly “out” is typically used when you want to pass multiple values from a method instead of just one.

    Viewing 2 posts - 1 through 2 (of 2 total)
    • The topic ‘when you put out in the parameter what does it mean?’ is closed to new replies.