VB.NET Strings.Chr to C#

How to convert :

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

to C#?


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.

These are the C# equivalents:

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

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

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

Need Your Help

WHM: Moving an account to a new server

php cpanel whm

I have an account on WHM for a PHP web app that's over 50GB in size on a dedicated server, the company decided to move it to a new server, and I was assigned the task.

Animation on Navigation Drawer not smooth on all devices

java android android-listview android-animation navigation-drawer

I have a Navigation Drawer in my application with the following controls: