我需要在C#中将String转换为十进制,但此字符串具有不同的格式.
例如:
"50085"
"500,85"
"500.85"
这应该转换为小数500,85.是否有使用格式进行此转换的简化形式?
c# string decimal
c# ×1
decimal ×1
string ×1