Visual Guard Class Library Documentation

VGReflectionHelper.GetField Method 

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

public static object GetField(
   Object target,
   String fieldName,
   Type targetType
);

Parameters

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

Return Value

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

VGReflectionHelper Class | Novalys.VisualGuard.Security Namespace