Environment constants

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

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

2条回答
  •  有刺的猬
    2021-01-04 00:54

    NewLine is on the Environment class because the new line specification varies between platforms:

    It's "\r\n" for non-Unix platforms and "\n" for Unix platforms. However tab is always "\t".

提交回复
热议问题