Gets the name of the property used to access to the given FieldInfo.
Namespace: Novalys.VisualGuard.SecurityAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)
Syntax
C# |
---|
public static PropertyInfo GetAssociatedPropertyInfo( FieldInfo info ) |
Visual Basic |
---|
Public Shared Function GetAssociatedPropertyInfo ( info As FieldInfo ) As PropertyInfo |
Parameters
- info
- Type: System.Reflection..::..FieldInfo
The FieldInfo for which you want to get the property name.
Return Value
Type: PropertyInfoThe name of the property if the field is accessed through a property, otherwise the name of the FieldInfo.