Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • What if we pass something big, wouldn't it save us some space if we just pass the reference ? Commented Jun 26, 2013 at 1:45
  • 2
    You are passing a reference without the ref keyword, unless you pass a value type, which is usually small enough for copying not to be an issue. You don't understand what the ref keyword means, so all your assumptions are deeply flawed. Read up on ref please. What economy are you hoping to make here? Commented Jun 26, 2013 at 1:46
  • Yes, by definition, class instances are passed by reference. I've demonstrated quite clearly what the ref keyword allows you to do above. Commented Jun 26, 2013 at 1:50