ShareThis

Monday, June 4, 2012

C# Cast string to a long

long MyLong = Int64.Parse( MyString );

or

long MyLong = Convert.ToInt64(MyString);

0 comments:

Post a Comment