Beispiel #1
0
 public T Get <T>(int i)
 {
     try
     {
         return(Funcs.ToType <T>(Parsed[i + Offset]));
     } catch (Exception) { }
     return(default(T));
 }
Beispiel #2
0
 public static string Join(this string s, IEnumerable <object> o)
 {
     try
     {
         return(string.Join(s, o.Select(b => Funcs.ToType <string>(b)).ToA()));
     }
     catch (Exception) { }
     return(string.Join(s, o.Select(b => b.ToString()).ToA()));
 }
Beispiel #3
0
 public T Get <T>()
 {
     try
     {
         return(Funcs.ToType <T>(Value));
     } catch (Exception) { }
     if (typeof(T) == typeof(String))
     {
         return(Funcs.ToType <T>(Value.ToString()));
     }
     throw new Exception();
 }
Beispiel #4
0
 public object Get()
 {
     try
     {
         return(Funcs.ToType <ValueType>(Value));
     }
     catch (Exception) { }
     if (typeof(ValueType) == typeof(String))
     {
         return(Value.ToString());
     }
     throw new Exception();
 }