GetAutomaticProperty(FieldInfo)
Gets the PropertyInfo of which a given field is the backing field, in the current type or its base types.
Declaration
public static PropertyInfo GetAutomaticProperty(this FieldInfo field)Parameters
| Type | Name | Description |
|---|---|---|
| FieldInfo | field | A field. |
Returns
| Type | Description |
|---|---|
| PropertyInfo | The PropertyInfo representing the property whose |
GetAutomaticProperty(FieldInfo, bool)
Gets the PropertyInfo of which a given field is the backing field. The inherit parameter specifies whether base types should be considered.
Declaration
public static PropertyInfo GetAutomaticProperty(this FieldInfo field, bool inherit)Parameters
| Type | Name | Description |
|---|---|---|
| FieldInfo | field | A field. |
| bool | inherit |
|
Returns
| Type | Description |
|---|---|
| PropertyInfo | The PropertyInfo representing the property whose |