Example #1
0
 internal object ValueToObject(DataCenterValueRaw value)
 {
     switch (value.TypeCode)
     {
         case TypeCode.Int:
             return value.ToInt();
         case TypeCode.Float:
             return value.ToFloat();
         case TypeCode.Bool:
             return value.ToBool();
         default:
             var address = value.ToSegmentAddress();
             return GetString(address);
     }
 }
 public string ValueToString(CultureInfo cultureInfo)
 {
     return(DataCenterValueRaw.ToString(Value, cultureInfo));
 }