技术问题 [英] Technical Question

查看:62
本文介绍了技术问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在vb.net中重载运算符?


是否可以在vb.net中执行程序员定义的装箱值?

变量?

解决方案

不,不。 VB不支持这个。


如果你需要这个功能,我建议你使用C#。


" bi ***** ***@csa.com" <一个******* @ discussions.microsoft.com>在消息中写道

news:03 **************************** @ phx.gbl ... < blockquote class =post_quotes>是否有可能在vb.net中重载运算符?

是否有可能在vb.net中对值变量进行程序员定义的变量?



比尔,

你需要等待VB.NET 2004(Whidbey)来重载运算符。
http://msdn.microsoft.com/vstudio/pr .. .o / roadmap.aspx


希望这有帮助

Jay


" bi * *******@csa.com" <一个******* @ discussions.microsoft.com>在消息中写道

news:03 **************************** @ phx.gbl ... < blockquote class =post_quotes>是否有可能在vb.net中重载运算符?

是否有可能在vb.net中对值变量进行程序员定义的变量?



在文章< e0 ************** @ TK2MSFTNGP12.phx.gbl>中,
Ja ******** @ email.msn.com 说...

Bill,
您将需要等待VB.NET 2004(Whidbey)来重载运算符。




那么我们是否能够重载赋值C#中的操作员?


- 瑞克


Is it possible to overload operators in vb.net?

Is it possible to do programmer defined boxing on byvalue
variables in vb.net?

解决方案

No and no. VB does not support this.

If you need this capability, I recommend you use C#.

"bi********@csa.com" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...

Is it possible to overload operators in vb.net?

Is it possible to do programmer defined boxing on byvalue
variables in vb.net?



Bill,
You will need to wait for VB.NET 2004 (Whidbey) to get overloaded operators.

http://msdn.microsoft.com/vstudio/pr...o/roadmap.aspx

Hope this helps
Jay

"bi********@csa.com" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...

Is it possible to overload operators in vb.net?

Is it possible to do programmer defined boxing on byvalue
variables in vb.net?



In article <e0**************@TK2MSFTNGP12.phx.gbl>,
Ja********@email.msn.com says...

Bill,
You will need to wait for VB.NET 2004 (Whidbey) to get overloaded operators.



Will we then be able to overload the assignment operator in C#?

-- Rick


这篇关于技术问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆