How to pass references as arguments in a method in c#

前端 未结 7 1206
花落未央
花落未央 2021-01-25 00:54

How can you pass refernces in C#?

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-25 01:11

    Your question is extremely unclear, but it's quite possible that my article on parameter passing in C# will answer whatever you really intended to ask.

    In particular, you need to distinguish between passing a reference by value, and passing an argument by reference. If you're hazy on value types and reference types, you might also want to look at my article on that topic.

提交回复
热议问题