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
System.Object
  PostSharp.Reflection.ReflectionExtensions

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.39.0 (5.0.39.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.
See Also