PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Reflection­Extensions Class
ReflectionExtensions Class
Provides utility methods to work with the System.Reflection namespace.
Inheritance Hierarchy

Namespace: PostSharp.Reflection
Assembly: PostSharp (in PostSharp.dll) Version: (
public static class ReflectionExtensions

The ReflectionExtensions type exposes the following members.

Public methodStatic memberGetAutomaticProperty(FieldInfo)
Gets the PropertyInfo whose a given field is the backing field from the current type or base types.
Public methodStatic memberGetAutomaticProperty(FieldInfo, Boolean)
Gets the PropertyInfo whose a given field is the backing field and specifies whether base types should be considered.
Public methodStatic memberGetBackingField
Gets the backing field of a given property.
Public methodStatic memberGetStateMachineKind
Gets the kind of state machine (typically Async, Enumerable or None) that implements a given method.
Public methodStatic memberGetStateMachinePublicMethod
Public methodStatic memberIsAutomaticProperty
Determines whether a given property is an automatic property.
See Also