Open sandboxFocus
  • Article

Class ReflectionSearch

See individual methods for migration assistance.

Inheritance
ReflectionSearch
Namespace: PostSharp.Reflection
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("See individual methods for migration assistance.", false)]
public static class ReflectionSearch

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, bool)

In Metalama, use IDeclaration.Attributes.

  • Navigation