public bool TryGetCustomProperty(string name, out CustomProperty property)
 {
     return(m_Properties.TryGetProperty(name, out property));
 }
Exemple #2
0
 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);
        }
Exemple #4
0
 public static T GetValueAsEnum <T>(this CustomProperty property)
 {
     return(property.m_Value.ToEnum <T>());
 }
Exemple #5
0
 public static bool GetValueAsBool(this CustomProperty property)
 {
     return(property.m_Value.ToBool());
 }
Exemple #6
0
 public static float GetValueAsFloat(this CustomProperty property)
 {
     return(property.m_Value.ToFloat());
 }
Exemple #7
0
 public static int GetValueAsInt(this CustomProperty property)
 {
     return(property.m_Value.ToInt());
 }
Exemple #8
0
 public static Color GetValueAsColor(this CustomProperty property)
 {
     return(property.m_Value.ToColor());
 }