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.
精彩评论