hasattribute - eisclimber/ExPresS-XR GitHub Wiki

AttributeHelpers.HasAttribute(MemberInfo)

Method in AttributeHelpers

Summary

Checks if a MemberInfo is annotated with the given Attribute.

public static bool HasAttribute<T>(MemberInfo memberInfo)
    where T : Attribute;

Parameters

Name Description
System.Reflection.MemberInfo memberInfo MemberInfo to be checked.

Type Parameters

Name Description
T Attribute to be checked.

Returns

If the member has the Attribute.

⚠️ **GitHub.com Fallback** ⚠️