MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​ReflectionReflection­SearchGet­Custom­Attributes­Of­Type
Open sandboxFocus

ReflectionSearch.GetCustomAttributesOfType Method

GetCustomAttributesOfType(Type)

This is currently not exposed in Metalama but it is implemented internally.

Declaration
public static CustomAttributeInstance[] GetCustomAttributesOfType(Type customAttributeType)
Parameters
Type Name Description
System.Type customAttributeType
Returns
Type Description
CustomAttributeInstance[]

GetCustomAttributesOfType(Type, ReflectionSearchOptions)

This is currently not exposed in Metalama but it is implemented internally.

Declaration
public static CustomAttributeInstance[] GetCustomAttributesOfType(Type customAttributeType, ReflectionSearchOptions options)
Parameters
Type Name Description
System.Type customAttributeType
ReflectionSearchOptions options
Returns
Type Description
CustomAttributeInstance[]