如何覆盖operator = [英] How to override the operator =
本文介绍了如何覆盖operator =的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好:
如何覆盖类操作符=喜欢C ++?
祝你好运!
Hi All :
How to override the class operator = like C++ ?
Best regards !
推荐答案
很抱歉,您无法在C#中覆盖operator =。
apex < AP ***** @ sjtu.edu.cn>在留言中写道
新闻:el ************** @ tk2msftngp13.phx.gbl ...
I am sorry that you can''t override operator= in C#.
"apex" <ap*****@sjtu.edu.cn> wrote in message
news:el**************@tk2msftngp13.phx.gbl...
你好全部:
如何覆盖类操作符=喜欢C ++?
最好的问候!
Hi All :
How to override the class operator = like C++ ?
Best regards !
您可以覆盖隐式强制转换运算符。 (参见
MSDN隐含的关键字)
" apex" < AP ***** @ sjtu.edu.cn>在留言中写道
新闻:el ************** @ tk2msftngp13.phx.gbl ...
You can override the implicit cast - operator. (see keyword implicit in
MSDN)
"apex" <ap*****@sjtu.edu.cn> wrote in message
news:el**************@tk2msftngp13.phx.gbl...
你好全部:
如何覆盖类操作符=喜欢C ++?
最好的问候!
Hi All :
How to override the class operator = like C++ ?
Best regards !
你可以调整你的时钟吗?
$ b $bJosé
" apex" < AP ***** @ sjtu.edu.cn>在留言中写道
新闻:el ************** @ tk2msftngp13.phx.gbl ...
Could you adjust your clock?
José
"apex" <ap*****@sjtu.edu.cn> wrote in message
news:el**************@tk2msftngp13.phx.gbl...
你好全部:
如何覆盖类操作符=喜欢C ++?
最好的问候!
Hi All :
How to override the class operator = like C++ ?
Best regards !
这篇关于如何覆盖operator =的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文