简体   繁体   中英

Convert constants from vb to c#

在VB.Net中有一堆常量如vbTab,C#中是否有对应的常量?

There is not an exact corresponding set of constants oriented for C#. Certain constants are simply represented in string form (eg, "\\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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM