C# Класс Ninject.Infrastructure.Language.ExtensionsForICustomAttributeProvider.ExtensionsForICustomAttributeProvider

Provides extension methods for object that is MemberInfo or ParameterInfo.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetCustomAttributesExtended ( this target, Type attributeType, bool inherit ) : IEnumerable

Gets custom attributes which supports MemberInfo and PropertyInfo.

HasAttribute ( this target, Type type ) : bool

Determines if the target has the specified attribute.

Описание методов

GetCustomAttributesExtended() публичный статический Метод

Gets custom attributes which supports MemberInfo and PropertyInfo.
public static GetCustomAttributesExtended ( this target, Type attributeType, bool inherit ) : IEnumerable
target this The that is or .
attributeType System.Type The attribute type.
inherit bool When true, look up the hierarchy chain for the inherited custom attribute.
Результат IEnumerable

HasAttribute() публичный статический Метод

Determines if the target has the specified attribute.
public static HasAttribute ( this target, Type type ) : bool
target this The that is or .
type System.Type The attribute type.
Результат bool