VB.NET Strings.Chr to C#

How to convert :

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

to C#?

Answers


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

Is Md5 Encryption Symmetric or Asymmetric?

iphone cocoa encryption passwords md5

For my iPhone application, Apple wants to know if my password encryption (md5) is greater then 64-bit symmetric or greater then 1024-bit symmetric. I have not been able to find it online, so I am

How to set conditions when JSON parser can't find a JSON object

java android json parsing adt

In this for loop, my code looks for "name", "count", and "id", but sometimes the "count" object is not available in the JSON response. How can I set conditions when the "count" object is not presen...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.