ReflectionExtensions.GetAutomaticProperty Method (FieldInfo) |
Gets the PropertyInfo whose a given field is the backing field from the current type or base types.
Namespace: PostSharp.Reflection
Assembly: PostSharp (in PostSharp.dll) Version: 6.5.21.0 (6.5.21.0)
C#
public static PropertyInfo GetAutomaticProperty( this FieldInfo field )
Parameters
- field
- Type: System.Reflection.FieldInfo
A field.
Return Value
Type: PropertyInfoThe PropertyInfo representing the property whose field is the backing field, or null if field is not the backing field of an automatic property.