Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.OdinInspector.Editor |
public static class AttributeListExtensions
public static T Add<T>(this List<Attribute> attributeList)
where T : Attribute, new()
System.Collections.Generic.List<System.Attribute> | attributeList | The attribute list. |
T |
T | The type of attribute. |
public static T GetAttribute<T>(this IList<Attribute> attributeList)
where T : Attribute
System.Collections.Generic.IList<System.Attribute> | attributeList | The attribute list. |
T |
T | The type of attribute. |
public static T GetOrAddAttribute<T>(this List<Attribute> attributeList)
where T : Attribute, new()
System.Collections.Generic.List<System.Attribute> | attributeList | The attribute list. |
T |
T | The type of attribute. |
public static bool HasAttribute<T>(this IList<Attribute> attributeList)
where T : Attribute
System.Collections.Generic.IList<System.Attribute> | attributeList | The attribute list. |
System.Boolean |
|
T | The type of attribute. |
public static bool RemoveAttributeOfType<T>(this List<Attribute> attributeList)
where T : Attribute
System.Collections.Generic.List<System.Attribute> | attributeList | The attribute list. |
System.Boolean |
T | The type of attribute. |