MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​Reflection
Open sandboxFocus

PostSharp.Reflection Namespace

Classes

AssemblyProcessorArchitecture

The processor architecture is not exposed in Metalama.

CodeReferenceKind

In Metalama, use ReferenceKinds.

CustomAttributeInstance

In Metalama, use IAttributeData.

CustomReflectionBinder

No equivalent in Metalama.

DeclarationIdentifier

No equivalent in Metalama.

LocationInfo

In Metalama, use FieldOrPropertyInfo.

LocationKind

No equivalent in Metalama.

MemberTypeCodeReference

In Metalama, use ReferenceValidationContext.

MethodUsageCodeReference

In Metalama, use ReferenceValidationContext.

MethodUsageInstructions

In Metalama, use ReferenceKinds.

ObjectConstruction

In Metalama, use AttributeConstruction.

ParameterKind

In Metalama, use RefKind.

ParameterKindExtensions

In Metalama, use RefKindExtensions.

ReflectionExtensions

There is no direct equivalent in Metalama, but individual methods may have.

ReflectionHelper

The equivalent in Metalama is ReflectionHelper but it does not cover the same functions.

ReflectionSearch

See individual methods for migration assistance.

ReflectionSearchOptions

There is no equivalent in Metalama.

ReflectionTypeComparer

In Metalama, use ICompilation.Comparers.

SemanticInfo

No equivalent in Metalama.

Semantics

No equivalent in Metalama.

StateMachineKind

In Metalama, use AsyncInfo at compile time. There is no equivalent at run time.

SymbolSequencePoint

Not exposed in Metalama.

TypeInheritanceCodeReference

In Metalama, use ReferenceValidationContext.

Visibility

In Metalama, use Accessibility.

Interfaces

IAssemblyName

In Metalama, use IAssemblyIdentity.

ICodeReference

In Metalama, use DeclarationValidationContext or ReferenceValidationContext.

IMetadataDispenser

No equivalent in Metalama.

IMetadataEmitter

No equivalent in Metalama.

ISourceDocument

This is currently not exposed in Metalama.