[英]VB.NET Strings.Chr to C#
How to convert : 如何转换:
strMenu.Append(" <ul>" + Strings.Chr(13));
to C#? 到C#?
These are the C# equivalents: 这些是C#等效项:
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. 由于NewLine是当前运行时环境的新行序列。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.