Example #1
0
 public float GetFloat(int i)
 {
     var value = GetValue(i);
     if (value != null)
     {
         float num;
         if (float.TryParse(value.ToString(), NumberStyles.Any, CultureInfo.InvariantCulture.NumberFormat, out num))
             return num;
     }
     return SafeConverter.Convert<float>(value);
 }
Example #2
0
 public double GetDouble(int i)
 {
     var value = GetValue(i);
     if (value != null)
     {
         double num;
         if (double.TryParse(value.ToString(), NumberStyles.Any, CultureInfo.InvariantCulture.NumberFormat, out num))
             return num;
     }
     return SafeConverter.Convert<double>(value);
 }
Example #3
0
 public string GetString(int i)
 {
     return SafeConverter.Convert<string>(GetValue(i));
 }
Example #4
0
 public long GetInt64(int i)
 {
     return SafeConverter.Convert<long>(GetValue(i));
 }
Example #5
0
 public int GetInt32(int i)
 {
     return SafeConverter.Convert<int>(GetValue(i));
 }
Example #6
0
 public short GetInt16(int i)
 {
     return SafeConverter.Convert<short>(GetValue(i));
 }
Example #7
0
 public Guid GetGuid(int i)
 {
     return SafeConverter.Convert<Guid>(GetValue(i));
 }
Example #8
0
 public char GetChar(int i)
 {
     return SafeConverter.Convert<char>(GetValue(i));
 }
Example #9
0
 public byte GetByte(int i)
 {
     return SafeConverter.Convert<byte>(GetValue(i));
 }
Example #10
0
 public bool GetBoolean(int i)
 {
     return SafeConverter.Convert<bool>(GetValue(i));
 }