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

AttributeResolver

Narumikazuchi edited this page Sep 18, 2021 · 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)
FetchOnlyAllowedAttribute<TAttribute>(System.Reflection.ParameterInfo)
FetchOnlyAllowedAttribute<TAttribute>(System.Reflection.MemberInfo)
FetchOnlyAllowedAttribute<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.

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

FetchAllAttributes<TAttribute>(System.Reflection.MemberInfo)

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

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

FetchAllAttributes<TAttribute>(System.Reflection.ParameterInfo)

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

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

FetchOnlyAllowedAttribute<TAttribute>(System.Reflection.Assembly)

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

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

FetchOnlyAllowedAttribute<TAttribute>(System.Reflection.MemberInfo)

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

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

FetchOnlyAllowedAttribute<TAttribute>(System.Reflection.ParameterInfo)

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

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

HasAttribute<TAttribute>(System.Reflection.Assembly)

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

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

HasAttribute<TAttribute>(System.Reflection.MemberInfo)

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

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

HasAttribute<TAttribute>(System.Reflection.ParameterInfo)

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

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

Clone this wiki locally