Convert constants from vb to c#
There are a bunch of constants li开发者_运维知识库ke vbTab in VB.Net, is there corresponding one in C# ?
There is not an exact corresponding set of constants oriented for C#. Certain constants are simply represented in string form (e.g., "\t"
for vbTab
).
I would suggest not referencing the Microsoft.VisualBasic
assembly to use those constants. That namespace mainly exists to support migration of legacy VB6 applications.
精彩评论