C# - Passing Reference-Type Parameters
转载
A variable of a reference type does not contain its data directly; it contains a reference to its data. When you pass a reference-type parameter by value, it is possible to change the data pointed to
by the reference, such as the value of a class member. However, you cannot change the value of the reference itself; that is, you cannot use the same reference to allocate memory for a new class and have it persist outside the block. To do that, pass
the parameter using the ref or
out keyword.
本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:关于数据筛选的不打不小的问题
下一篇:JDBC的使用
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
C# Integral TypeC语言 C