Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

AttributeResolver

Davy Ganzel edited this page Jun 3, 2022 · 11 revisions

Assembly: Narumikazuchi.dll
Namespace: Narumikazuchi

Description

Checks if a custom attribute is defined or fetches the custom attributes applied to a type, method, parameter etc.

public static class AttributeResolver

Members

Defined

FetchAllAttributes<TAttribute>(System.Reflection.Assembly)
FetchAllAttributes<TAttribute>(System.Reflection.MemberInfo)
FetchAllAttributes<TAttribute>(System.Reflection.ParameterInfo)
FetchSingleAttribute<TAttribute>(System.Reflection.ParameterInfo)
FetchSingleAttribute<TAttribute>(System.Reflection.MemberInfo)
FetchSingleAttribute<TAttribute>(System.Reflection.ParameterInfo)
HasAttribute<TAttribute>(System.Reflection.Assembly)
HasAttribute<TAttribute>(System.Reflection.MemberInfo)
HasAttribute<TAttribute>(System.Reflection.ParameterInfo)

Methods

FetchAllAttributes<TAttribute>(System.Reflection.Assembly)

Fetches all attributes of type 'TAttribute' from the specified System.Reflection.Assembly.

public System.Collections.Generic.IEnumerable<TAttribute> FetchAllAttributes<TAttribute>(System.Reflection.Assembly)
    where TAttribute : System.Attribute;

FetchAllAttributes<TAttribute>(System.Reflection.MemberInfo)

Fetches all attributes of type 'TAttribute' from the specified System.Reflection.MemberInfo.

public System.Collections.Generic.IEnumerable<TAttribute> FetchAllAttributes<TAttribute>(System.Reflection.MemberInfo)
    where TAttribute : System.Attribute;

FetchAllAttributes<TAttribute>(System.Reflection.ParameterInfo)

Fetches all attributes of type 'TAttribute' from the specified System.Reflection.ParameterInfo.

public System.Collections.Generic.IEnumerable<TAttribute> FetchAllAttributes<TAttribute>(System.Reflection.ParameterInfo)
    where TAttribute : System.Attribute;

FetchSingleAttribute<TAttribute>(System.Reflection.Assembly)

Fetches the only allowed attribute of type 'TAttribute' from the specified System.Reflection.Assembly.

public TAttribute FetchOnlyAllowedAttribute<TAttribute>(System.Reflection.Assembly)
    where TAttribute : System.Attribute;

FetchSingleAttribute<TAttribute>(System.Reflection.MemberInfo)

Fetches the only allowed attribute of type 'TAttribute' from the specified System.Reflection.MemberInfo.

public TAttribute FetchOnlyAllowedAttribute<TAttribute>(System.Reflection.MemberInfo)
    where TAttribute : System.Attribute;

FetchSingleAttribute<TAttribute>(System.Reflection.ParameterInfo)

Fetches the only allowed attribute of type 'TAttribute' from the specified System.Reflection.ParameterInfo.

public TAttribute FetchOnlyAllowedAttribute<TAttribute>(System.Reflection.ParameterInfo)
    where TAttribute : System.Attribute;

HasAttribute<TAttribute>(System.Reflection.Assembly)

Checks if the specified System.Reflection.Assembly has at least one 'TAttribute' defined.

public System.Boolean HasAttribute<TAttribute>(System.Reflection.Assembly)
    where TAttribute : System.Attribute;

HasAttribute<TAttribute>(System.Reflection.MemberInfo)

Checks if the specified System.Reflection.MemberInfohas at least one 'TAttribute' defined.

public System.Boolean HasAttribute<TAttribute>(System.Reflection.MemberInfo)
    where TAttribute : System.Attribute;

HasAttribute<TAttribute>(System.Reflection.ParameterInfo)

Checks if the specified System.Reflection.ParameterInfohas at least one 'TAttribute' defined.

public System.Boolean HasAttribute<TAttribute>(System.Reflection.ParameterInfo)
    where TAttribute : System.Attribute;

Clone this wiki locally