本文介绍了“With...End With"的等价物在 C# 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道 C# 有 using
关键字,但是 using
会自动处理对象.
I know that C# has the using
keyword, but using
disposes of the object automatically.
Visual 中是否有 With...End With
的等价物基本 6.0?
Is there the equivalence of With...End With
in Visual Basic 6.0?
推荐答案
C# 没有对应的语言结构.
C# doesn't have an equivalent language construct for that.
这篇关于“With...End With"的等价物在 C# 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!