user496949
user496949

Reputation: 86075

Convert constants from vb to c#

There are a bunch of constants like vbTab in VB.Net, is there corresponding one in C# ?

Upvotes: 6

Views: 12613

Answers (1)

Phil Hunt
Phil Hunt

Reputation: 8521

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.

Upvotes: 17

Related Questions