Gets an object representing the field with the specified name for the specified target.

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 Object GetField(
	Object target,
	string fieldName,
	Type targetType
)
Visual Basic
Public Shared Function GetField ( 
	target As Object,
	fieldName As String,
	targetType As Type
) As Object

Parameters

target
Type: System..::..Object
The object whose field will be returned
fieldName
Type: System..::..String
A string containing the name of the field in dotted-quad notation(e.g. fieldname.subfieldname.subfieldname).
targetType
Type: System..::..Type
the type for which the field is retrieved

Return Value

Type: Object
An object representing the field with the specified name for the specified target. Returns the target if the specified fieldName if null or empty.

See Also