MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​ReflectionReflection­ExtensionsGet­Automatic­Property
Open sandboxFocus

ReflectionExtensions.GetAutomaticProperty Method

GetAutomaticProperty(FieldInfo)

In Metalama, backing field of automatic properties are not exposed to the code model.

Declaration
public static PropertyInfo GetAutomaticProperty(this FieldInfo field)
Parameters
Type Name Description
System.Reflection.FieldInfo field
Returns
Type Description
System.Reflection.PropertyInfo

GetAutomaticProperty(FieldInfo, Boolean)

In Metalama, backing field of automatic properties are not exposed to the code model.

Declaration
public static PropertyInfo GetAutomaticProperty(this FieldInfo field, bool inherit)
Parameters
Type Name Description
System.Reflection.FieldInfo field
System.Boolean inherit
Returns
Type Description
System.Reflection.PropertyInfo