A Programmer`s Summary Note
Showing posts with label
C#
.
Show all posts
Showing posts with label
C#
.
Show all posts
Dec 4, 2013
byte string convert in C#
byte[] bStrByte = Encoding.UTF8.GetBytes(str0); // string -> byte
string str1 = Encoding.Default.GetString(bStrByte); // byte -> string
Oct 8, 2013
[C#] How to add comma to numbers
int nNum = 123456;
string strNum = nNum.ToString("#.##0");
Then you will have "123,456".
Older Posts
Home
Subscribe to:
Posts (Atom)