开发者

VB.NET Strings.Chr to C#

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜