Gets the name of the property used to access to the given FieldInfo.

Namespace: Novalys.VisualGuard.Security
Assembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)

Syntax

C#
public static string GetUndecoratedFieldName(
	FieldInfo info
)
Visual Basic
Public Shared Function GetUndecoratedFieldName ( 
	info As FieldInfo
) As String

Parameters

info
Type: System.Reflection..::..FieldInfo
The FieldInfo for which you want to get the property name.

Return Value

Type: String
The name of the property if the field is accessed through a property, otherwise the name of the FieldInfo.

See Also