Is it possible to enable XML intellisense in a C# class as it is in the VB editor? Similar to this article's prescriptions:
是否可以在C#类中启用XML intellisense,就像在VB编辑器中一样?与本文的处方类似:
http://msdn.microsoft.com/en-us/library/bb531325.aspx
Would like to not have to use xsd.exe to generate a class from the XML.
不想使用xsd.exe从XML生成类。
2 个解决方案
#1
5
No, because C# doesn't support XML literals like VB does in the first place - there's really nowhere in the language where the IntelliSense would pop up, unless it detected that you were calling Elements
on an XElement
etc.
不,因为C#首先不支持VB这样的XML文字 - 除非它检测到你在XElement等上调用了Elements,否则在弹出IntelliSense的语言中确实无处可去。
#2
1
Not currently - the feature is VB.Net only, commonly called XML Literals.
目前还没有 - 该功能仅限于VB.Net,通常称为XML Literals。
#1
5
No, because C# doesn't support XML literals like VB does in the first place - there's really nowhere in the language where the IntelliSense would pop up, unless it detected that you were calling Elements
on an XElement
etc.
不,因为C#首先不支持VB这样的XML文字 - 除非它检测到你在XElement等上调用了Elements,否则在弹出IntelliSense的语言中确实无处可去。
#2
1
Not currently - the feature is VB.Net only, commonly called XML Literals.
目前还没有 - 该功能仅限于VB.Net,通常称为XML Literals。