'with'声明 [英] 'with' statement
问题描述
你好,
在vb.net中有一个with语句,c#中是否有类似的构造函数?
5月1日下午3:33,DOTNETGUY< DOTNET ... @ discussion.microsoft.com>
写道:
在vb.net中有一个with语句,c#中是否有类似的构造函数?
不,没有。
" DOTNETGUY" < DO ******* @ discuss.microsoft.com写信息
news:50 ********************* ************* @ microsof t.com ...
在vb.net中有一个with语句,是否有类似的构造函数在
c#?
不,谢天谢地!
http://msdn2.microsoft.com/en-us/vcsharp/aa336816.aspx
< blockquote>
" Andy" < an *** @ med-associates.comwrote in message
news:11 ********************* @ c35g2000hsg.googlegro ups.com ...
5月1日下午3:33,DOTNETGUY< DOTNET ... @ discussion.microsoft.com>
写道:
>在vb.net中有一个with语句,在
c#中是否有类似的构造函数?
不,没有。
但是应该有。
以及真正的案例声明(允许任何类型的操作数)
替换当前的开关。声明,这是1972年左右Fortran对C的影响的变形遗迹。
Hello,
In vb.net there is a with statement, Is there are similar constructor in c#?
On May 1, 3:33 pm, DOTNETGUY <DOTNET...@discussions.microsoft.com>
wrote:In vb.net there is a with statement, Is there are similar constructor in c#?No, there is not.
"DOTNETGUY" <DO*******@discussions.microsoft.comwrote in message
news:50**********************************@microsof t.com...
In vb.net there is a with statement, Is there are similar constructor in
c#?No, thankfully!
http://msdn2.microsoft.com/en-us/vcsharp/aa336816.aspx
"Andy" <an***@med-associates.comwrote in message
news:11*********************@c35g2000hsg.googlegro ups.com...On May 1, 3:33 pm, DOTNETGUY <DOTNET...@discussions.microsoft.com>
wrote:>In vb.net there is a with statement, Is there are similar constructor in
c#?
No, there is not.But there ought to be.
As well as a genuine "case" statement (allowing operands of any type) to
replace the current "switch" statement, which is a deformed relic of the
influence of Fortran upon C in 1972 or so.
这篇关于'with'声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!