开发者

VB.NET Strings.Chr to C#

开发者 https://www.devze.com 2023-01-23 14:51 出处:网络
How to convert : strMenu.开发者_C百科Append(\"<ul>\" + Strings.Chr(13)); to C#?These are the C# equivalents:

How to convert :

strMenu.开发者_C百科Append("        <ul>" + Strings.Chr(13));

to C#?


These are the C# equivalents:

strMenu.Append("        <ul>\r");

strMenu.Append("        <ul>\u000d");

strMenu.Append("        <ul>" + (char)13);


strMenu += "        <ul>\r";

Is the direct translation. It is possible you would like to use this instead:

strMenu += "        <ul>" + Enviroment.NewLine;

Since NewLine is the new line sequence for the current runtime environment.

0

精彩评论

暂无评论...
验证码 换一张
取 消