Last active
August 13, 2018 03:55
-
-
Save vexx32/5fe8db45c8472e882bed7cbc3b80b3ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (suffix == 'u' || suffix == 'U') | |
{ | |
if (UInt32.TryParse(strNum, style, NumberFormatInfo.InvariantInfo, out uint u)) | |
{ | |
ulong testresult = u * (ulong) multiplier; | |
if (testresult > UInt32.MaxValue) | |
{ | |
result = testresult; | |
} | |
else | |
{ | |
result = (uint) testresult; | |
} | |
return true; | |
} | |
else | |
{ | |
result = null; | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment