parsing - .NET method to parse String with Long type qualifier -


i string 3rd party sw long type qualifier, e.g. "1l". want parse int64, int64.tryparse not recognize int64. there .net method safely? want avoid parsing myself...

thanks help!

in simplest case, can this:

string snum = "1l"; int pos = snum.indexof('l'); if (pos == snum.length-1) {     snum = snum.substring(0, snum.length-1); } long num = int64.parse(snum); 

Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -