This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

ReflectionExtensions Class

Provides utility methods to work with the System.Reflection namespace.
Inheritance Hierarchy
System.Object
  PostSharp.Reflection.ReflectionExtensions

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.34.0 (5.0.34.0)
Syntax
C#
public static class ReflectionExtensions

The ReflectionExtensions type exposes the following members.

Methods
  NameDescription
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, [!:StateMachineKind.Enumerable] or None) that implements a given method.
Public methodStatic memberGetStateMachinePublicMethod
Public methodStatic memberIsAutomaticProperty
Determines whether a given property is an automatic property.
Top
See Also