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