- Home /
Question by
robert_mathew · Jan 20, 2012 at 07:17 AM ·
c#javaconvert
convert java script to c#
text = String.Format ("{0:00}:{1:00}", displayMinutes, displaySeconds);
how to covert this line of code in java script to c#
Comment
Best Answer
Answer by syclamoth · Jan 20, 2012 at 08:00 AM
This line is exactly the same in C#! Remember to put
using System;
at the top.
in C#, it is recommended to use the string class as a value-type, thus string ins$$anonymous$$d of String. That way, you don't need to explicitly import the System namespace.