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: 2023.0.3.0 (2023.0.3.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.