예제 #1
0
 public static sbyte?AsNullableSByte(this string val, sbyte?dflt = 0)
 {
     return(ObjectValueConversion.AsNullableSByte(val, dflt));
 }
예제 #2
0
 public static bool AsBool(this string val, bool dflt = false)
 {
     return(ObjectValueConversion.AsBool(val, dflt));
 }
예제 #3
0
 public static TEnum AsEnum <TEnum>(this string val, TEnum dflt = default(TEnum)) where TEnum : struct
 {
     return(ObjectValueConversion.AsEnum <TEnum>(val, dflt));
 }
예제 #4
0
 public static Uri AsUri(this string val, Uri dflt = null)
 {
     return(ObjectValueConversion.AsUri(val, dflt));
 }
예제 #5
0
 public static DateTime?AsNullableDateTime(this string val, DateTime?dflt = null)
 {
     return(ObjectValueConversion.AsNullableDateTime(val, dflt));
 }
예제 #6
0
 public static TimeSpan AsTimeSpan(this string val, TimeSpan dflt)
 {
     return(ObjectValueConversion.AsTimeSpan(val, dflt));
 }
예제 #7
0
 public static ulong?AsNullableULong(this string val, ulong?dflt = 0)
 {
     return(ObjectValueConversion.AsNullableULong(val, dflt));
 }
예제 #8
0
 public static DateTime AsDateTimeOrThrow(this string val)
 {
     return(ObjectValueConversion.AsDateTime(val));
 }
예제 #9
0
 public static uint?AsNullableUInt(this string val, uint?dflt = 0)
 {
     return(ObjectValueConversion.AsNullableUInt(val, dflt));
 }
예제 #10
0
 public static ulong AsULong(this string val, ulong dflt = 0)
 {
     return(ObjectValueConversion.AsULong(val, dflt));
 }
예제 #11
0
 public static uint AsUInt(this string val, uint dflt = 0)
 {
     return(ObjectValueConversion.AsUInt(val, dflt));
 }
예제 #12
0
 public static ushort AsUShort(this string val, ushort dflt = 0)
 {
     return(ObjectValueConversion.AsUShort(val, dflt));
 }
예제 #13
0
 public static short?AsNullableShort(this string val, short?dflt = 0)
 {
     return(ObjectValueConversion.AsNullableShort(val, dflt));
 }
예제 #14
0
 public static bool?AsNullableBool(this string val, bool?dflt = false)
 {
     return(ObjectValueConversion.AsNullableBool(val, dflt));
 }
예제 #15
0
 public static double AsDouble(this string val, double dflt = 0d)
 {
     return(ObjectValueConversion.AsDouble(val, dflt));
 }
예제 #16
0
 public static Guid AsGUID(this string val, Guid dflt)
 {
     return(ObjectValueConversion.AsGUID(val, dflt));
 }
예제 #17
0
 public static double?AsNullableDouble(this string val, double?dflt = 0d)
 {
     return(ObjectValueConversion.AsNullableDouble(val, dflt));
 }
예제 #18
0
 public static DateTime AsDateTime(this string val, DateTime dflt)
 {
     return(ObjectValueConversion.AsDateTime(val, dflt));
 }
예제 #19
0
 public static float AsFloat(this string val, float dflt = 0f)
 {
     return(ObjectValueConversion.AsFloat(val, dflt));
 }
예제 #20
0
 public static TimeSpan AsTimeSpanOrThrow(this string val)
 {
     return(ObjectValueConversion.AsTimeSpan(val, TimeSpan.FromSeconds(0), ConvertErrorHandling.Throw));
 }
예제 #21
0
 public static float?AsNullableFloat(this string val, float?dflt = 0f)
 {
     return(ObjectValueConversion.AsNullableFloat(val, dflt));
 }
예제 #22
0
 public static TimeSpan?AsNullableTimeSpan(this string val, TimeSpan?dflt = null)
 {
     return(ObjectValueConversion.AsNullableTimeSpan(val, dflt));
 }
예제 #23
0
 public static decimal AsDecimal(this string val, decimal dflt = 0m)
 {
     return(ObjectValueConversion.AsDecimal(val, dflt));
 }
예제 #24
0
 public static TEnum?AsNullableEnum <TEnum>(this string val, TEnum?dflt = null) where TEnum : struct
 {
     return(ObjectValueConversion.AsNullableEnum <TEnum>(val, dflt));
 }
예제 #25
0
 public static decimal?AsNullableDecimal(this string val, decimal?dflt = 0m)
 {
     return(ObjectValueConversion.AsNullableDecimal(val, dflt));
 }
예제 #26
0
 public static GDID?AsNullableGDID(this string val, GDID?dflt = null)
 {
     return(ObjectValueConversion.AsNullableGDID(val, dflt));
 }
예제 #27
0
 public static sbyte AsSByte(this string val, sbyte dflt = 0)
 {
     return(ObjectValueConversion.AsSByte(val, dflt));
 }