/// <summary>
 /// 转换为decimal
 /// </summary>
 /// <param name="obj">数据</param>
 public static decimal ToDecimal(this object obj)
 {
     return(Conv.ToDecimal(obj));
 }
Exemple #2
0
 /// <summary>
 /// 转换为decimal
 /// </summary>
 /// <param name="obj">数据</param>
 public static decimal ToDecimal(this string obj)
 {
     return(Conv.ToDecimal(obj));
 }
 /// <summary>
 /// 转换为decimal
 /// </summary>
 /// <param name="data">数据</param>
 public static decimal ToDecimal(this string data)
 {
     return(Conv.ToDecimal(data));
 }