我正在转换string为Float/ Decimalinmonotouch但它给出了格式异常。我正在使用Decimal.Parse(), Convert.ToDecimal()。请为此转换提供任何解决方案。
decimal d = Convert.ToDecimal(UIDevice.CurrentDevice.SystemVersion, CultureInfo.InvariantCulture);
decimal d = Decimal.Parse(UIDevice.CurrentDevice.SystemVersion, CultureInfo.InvariantCulture);