AttributeListExtensions

Extension method for List

namespace Sirenix.OdinInspector.Editor
{
[ExtensionAttribute]
public static class AttributeListExtensions
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Extension Methods

Return Type Definition Description
T Add<T>(this List<Attribute>) Adds the attribute if not exist.
T GetOrAddAttribute<T>(this List<Attribute>) Adds the attribute if not exist.
bool GetOrAddAttribute<T>(this List<Attribute>, T) Adds the attribute if not exist.
bool HasAttribute<T>(this IList<Attribute>) Determines whether the list contains a specific attribute.
bool RemoveAttributeOfType<T>(this List<Attribute>) Removes the type of the attribute of.