Пример #1
0
 /// <summary>
 /// 转换为int
 /// </summary>
 /// <param name="obj">数据</param>
 public static int ToInt(this object obj)
 {
     return(Conv.ToInt(obj));
 }
Пример #2
0
 /// <summary>
 /// 转换为int
 /// </summary>
 /// <param name="obj">数据</param>
 public static int ToInt(this string obj)
 {
     return(Conv.ToInt(obj));
 }
Пример #3
0
 /// <summary>
 /// 转换为int
 /// </summary>
 /// <param name="data">数据</param>
 public static int ToInt(this string data)
 {
     return(Conv.ToInt(data));
 }