MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​ReflectionReflection­Search
Open sandboxFocus

ReflectionSearch Class

See individual methods for migration assistance.

Inheritance
System.Object
ReflectionSearch
Namespace: PostSharp.Reflection
Assembly: Metalama.Migration.dll
Syntax
public static class ReflectionSearch : Object

Methods

Name Description
GetCustomAttributesOfType(Type)

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

GetCustomAttributesOfType(Type, ReflectionSearchOptions)

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

GetCustomAttributesOnTarget(Object)

In Metalama, use IDeclaration.Attributes.

GetCustomAttributesOnTarget(Object, ReflectionSearchOptions)

In Metalama, use IDeclaration.Attributes.

GetCustomAttributesOnTarget<T>(Object, ReflectionSearchOptions)

In Metalama, use IDeclaration.Attributes.

GetDeclarationsUsedByMethod(MethodBase)

In Metalama, the feature is not exposed on the code model, but it is a part of the validation feature thanks to the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>) method.

GetDeclarationsUsedByMethod(MethodBase, ReflectionSearchOptions)

In Metalama, the feature is not exposed on the code model, but it is a part of the validation feature thanks to the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>) method.

GetDerivedTypes(Type)

In Metalama, use ICompilation.GetDerivedTypes(INamedType, DerivedTypesOptions).

GetDerivedTypes(Type, ReflectionSearchOptions)

In Metalama, use ICompilation.GetDerivedTypes(INamedType, DerivedTypesOptions).

GetMembersOfType(Type)

In Metalama, the feature is not exposed on the code model, but it is a part of the validation feature thanks to the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>) method.

GetMembersOfType(Type, ReflectionSearchOptions)

In Metalama, the feature is not exposed on the code model, but it is a part of the validation feature thanks to the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>) method.

GetMethodsUsingDeclaration(MemberInfo)

In Metalama, the feature is not exposed on the code model, but it is a part of the validation feature thanks to the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>) method.

GetMethodsUsingDeclaration(MemberInfo, ReflectionSearchOptions)

In Metalama, the feature is not exposed on the code model, but it is a part of the validation feature thanks to the ValidateReferences<TValidator>(Func<TDeclaration, TValidator>) method.

HasCustomAttribute(Object, Type, Boolean)

In Metalama, use IDeclaration.Attributes.