PostSharp.ILAPI ReferencePost­Sharp.​ReflectionReflection­Extensions
Open sandboxFocus

ReflectionExtensions Class

Provides utility methods to work with the System.Reflection namespace.

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

Methods

Name Description
GetAutomaticProperty(FieldInfo)

Gets the PropertyInfo whose a given field is the backing field from the current type or base types.

GetAutomaticProperty(FieldInfo, Boolean)

Gets the PropertyInfo whose a given field is the backing field and specifies whether base types should be considered.

GetBackingField(PropertyInfo)

Gets the backing field of a given property.

GetStateMachineKind(MethodInfo)

Gets the kind of state machine (for example, Async, Iterator or None) that implements a given method.

GetStateMachinePublicMethod(MethodInfo)

Gets the public (or kick-off) method given a MoveNext method.

IsAutomaticProperty(PropertyInfo)

Determines whether a given property is an automatic property.