当有人传递带有后缀的字符串时,解析会decimal失败。
decimal
decimal testValue; decimal.TryParse("5M", NumberStyles.Number, CultureInfo.CurrentCulture, out testValue)
以下解析将返回false.
false
为什么TryParse传入带后缀的字符串会失败?
TryParse
c# string parsing decimal
c# ×1
decimal ×1
parsing ×1
string ×1