Environment constants

前端 未结 2 1275
执笔经年
执笔经年 2021-01-04 00:07

Is there an equivalant to Environment.NewLine in DotNet for a Tab character?

2条回答
  •  梦毁少年i
    2021-01-04 00:55

    Short answer is: no, tab does not change between platforms as newline might, so there is no need for one.

    Long answer is: technically, yes, you could use the one provided by VB in the Microsoft.VisualBasic.dll. I think it's Microsoft.VisualBasic.Constants.vbTab, but there's no good reason to use it in C# as I said above.

提交回复
热议问题