Skip to content

EntityFieldExtensions.GetAttribute<TAttribute> method

Gets the attribute.

public static TAttribute? GetAttribute<TAttribute>(this Field field)
    where TAttribute : Attribute
parameter description
TAttribute The type of the attribute.
field The field.

Return Value

First attribute with specified type.

See Also