HasAttribute

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

Attributeがあるかどうか。

パラメーター名 説明
assembly Assembly
targetType 取得する型

Attributeがあるかどうか。

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

Attributeがあるかどうか。

型パラメーター名 説明 型制約
T 取得する型
  • Attribute
パラメーター名 説明
assembly Assembly

Attributeがあるかどうか。

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

Attributeがあるかどうか。

パラメーター名 説明
member MemberInfo
targetType 取得する型

Attributeがあるかどうか。

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

Attributeがあるかどうか。

パラメーター名 説明
type Type
targetType 取得する型

Attributeがあるかどうか。

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

Attributeがあるかどうか。

型パラメーター名 説明 型制約
T 取得する型
  • Attribute
パラメーター名 説明
member MemberInfo

Attributeがあるかどうか。

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

Attributeがあるかどうか。

型パラメーター名 説明 型制約
T 取得する型
  • Attribute
パラメーター名 説明
type Type

Attributeがあるかどうか。