Esempio n. 1
0
 public static T ToEnum <T>(this PropertyValue propertyValue)
 {
     return((T)Enum.Parse(typeof(T), propertyValue.value, true));
 }
Esempio n. 2
0
 public static string ToStringValue(this PropertyValue propertyValue)
 {
     return(propertyValue.value);
 }
Esempio n. 3
0
 public static int ToIntValue(this PropertyValue propertyValue)
 {
     return(int.Parse(propertyValue.value, CultureInfo.InvariantCulture));
 }
Esempio n. 4
0
 public static float ToFloatValue(this PropertyValue propertyValue)
 {
     return(float.Parse(propertyValue.value, CultureInfo.InvariantCulture));
 }
Esempio n. 5
0
 public static bool ToBoolValue(this PropertyValue propertyValue)
 {
     return(bool.Parse(propertyValue.value));
 }