示例#1
0
 /// <summary>
 /// 转换为Guid
 /// </summary>
 /// <param name="data">数据</param>
 public static Guid ToGuid(this string data)
 {
     return(Conv.ToGuid(data));
 }
示例#2
0
 /// <summary>
 /// 转换为可空Guid
 /// </summary>
 /// <param name="data">数据</param>
 public static Guid?ToGuidOrNull(this string data)
 {
     return(Conv.ToGuidOrNull(data));
 }
示例#3
0
 /// <summary>
 /// 转换为日期
 /// </summary>
 /// <param name="data">数据</param>
 public static DateTime ToDate(this string data)
 {
     return(Conv.ToDate(data));
 }
示例#4
0
 /// <summary>
 /// 转换为可空日期
 /// </summary>
 /// <param name="data">数据</param>
 public static DateTime?ToDateOrNull(this string data)
 {
     return(Conv.ToDateOrNull(data));
 }
示例#5
0
 /// <summary>
 /// 转换为可空double
 /// </summary>
 /// <param name="data">数据</param>
 public static double?ToDoubleOrNull(this string data)
 {
     return(Conv.ToDoubleOrNull(data));
 }
示例#6
0
 /// <summary>
 /// 转换为可空decimal
 /// </summary>
 /// <param name="data">数据</param>
 public static decimal?ToDecimalOrNull(this string data)
 {
     return(Conv.ToDecimalOrNull(data));
 }
示例#7
0
 /// <summary>
 /// 转换为double
 /// </summary>
 /// <param name="data">数据</param>
 public static double ToDouble(this string data)
 {
     return(Conv.ToDouble(data));
 }
示例#8
0
 /// <summary>
 /// 转换为可空int
 /// </summary>
 /// <param name="data">数据</param>
 public static int?ToIntOrNull(this string data)
 {
     return(Conv.ToIntOrNull(data));
 }
示例#9
0
 /// <summary>
 /// 转换为int
 /// </summary>
 /// <param name="data">数据</param>
 public static int ToInt(this string data)
 {
     return(Conv.ToInt(data));
 }
示例#10
0
 /// <summary>
 /// 获取字符串
 /// </summary>
 /// <param name="data">对象</param>
 public static string ToStr(this object data)
 {
     return(Conv.ToString(data));
 }
示例#11
0
 /// <summary>
 /// 转换为Guid集合
 /// </summary>
 /// <param name="data">数据,范例: "83B0233C-A24F-49FD-8083-1337209EBC9A,EAB523C6-2FE7-47BE-89D5-C6D440C3033A"</param>
 public static List <Guid> ToGuidList(this string data)
 {
     return(Conv.ToGuidList(data));
 }