public bool TryGetCustomProperty(string name, out CustomProperty property) { return(m_Properties.TryGetProperty(name, out property)); }
public static string GetValueAsString(this CustomProperty property) { return(property.m_Value); }
public static bool TryGetProperty(this List <CustomProperty> list, string propertyName, out CustomProperty property) { if (list != null) { property = list.Find(p => String.Equals(p.m_Name, propertyName, StringComparison.OrdinalIgnoreCase)); return(property != null); } property = null; return(false); }
public static T GetValueAsEnum <T>(this CustomProperty property) { return(property.m_Value.ToEnum <T>()); }
public static bool GetValueAsBool(this CustomProperty property) { return(property.m_Value.ToBool()); }
public static float GetValueAsFloat(this CustomProperty property) { return(property.m_Value.ToFloat()); }
public static int GetValueAsInt(this CustomProperty property) { return(property.m_Value.ToInt()); }
public static Color GetValueAsColor(this CustomProperty property) { return(property.m_Value.ToColor()); }