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

ReflectionExtensions Class

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

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

Methods

Name Description
GetAutomaticProperty(FieldInfo)

In Metalama, backing field of automatic properties are not exposed to the code model.

GetAutomaticProperty(FieldInfo, Boolean)

In Metalama, backing field of automatic properties are not exposed to the code model.

GetBackingField(PropertyInfo)

Not supported in Metalama.

GetStateMachineKind(MethodInfo)

In Metalama, use IMethod.GetAsyncInfo(IMethod) at compile time. There is no equivalent at run time.

GetStateMachinePublicMethod(MethodInfo)

In Metalama, use IMethod.GetAsyncInfo(IMethod) at compile time. There is no equivalent at run time.

IsAutomaticProperty(PropertyInfo)

In Metalama, use IsAutoPropertyOrField.