HasAttribute

HasAttribute(Assembly, Type)

public static bool HasAttribute(Assembly assembly, Type targetType) ;

Description

Whether has Attribute

Parameters

Parameter Name Description
assembly Assembly
targetType Target Type

Returns

Whether has attribute.

HasAttribute<T>(Assembly)

public static bool HasAttribute<T>(Assembly assembly) ;

Description

Whether has Attribute

Type Parameters

Type Parameter Name Description Type Constraints
T Target Type
  • Attribute

Parameters

Parameter Name Description
assembly Assembly

Returns

Whether has attribute.

HasAttribute(MemberInfo, Type)

public static bool HasAttribute(MemberInfo member, Type targetType) ;

Description

Whether has Attribute

Parameters

Parameter Name Description
member MemberInfo
targetType Target Type

Returns

Whether has attribute.

HasAttribute(Type, Type)

public static bool HasAttribute(Type type, Type targetType) ;

Description

Whether has Attribute

Parameters

Parameter Name Description
type Type
targetType Target Type

Returns

Whether has attribute.

HasAttribute<T>(MemberInfo)

public static bool HasAttribute<T>(MemberInfo member) ;

Description

Whether has Attribute

Type Parameters

Type Parameter Name Description Type Constraints
T Target Type
  • Attribute

Parameters

Parameter Name Description
member MemberInfo

Returns

Whether has attribute.

HasAttribute<T>(Type)

public static bool HasAttribute<T>(Type type) ;

Description

Whether has Attribute

Type Parameters

Type Parameter Name Description Type Constraints
T Target Type
  • Attribute

Parameters

Parameter Name Description
type Type

Returns

Whether has attribute.