开发者

default assignment operator

Is there defau开发者_JAVA百科lt assignment operator in c#?


Unlike C++, C# does not allow you to override the assignment operator.

For reference types, writing x = y will set x to refer to the same object (or null) that y does.

For value types, writing x = y will copy the fields in the y value to the x value.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜