Mono Class Library: System.Type Overview | Members

System.Type.GetTypeArray Method

Returns the types of the objects in the specified array.

public static Type[] GetTypeArray (object[] args)

Parameters

args
An array of objects whose types are to be returned.

Returns

An array of Type objects representing the types of the corresponding elements in args. If a requested type is not public and the caller does not have permission to reflect non-public objects outside the current assembly, the corresponding element in the array returned by this method will be null.

Permissions

TypeReason
System.Security.Permissions.ReflectionPermissionRequires permission to retrieve information on non-public members of types in loaded assemblies. See System.Security.Permissions.ReflectionPermissionFlag.TypeInformation.

Exceptions

TypeReason
ArgumentNullExceptionargs is null.
System.Reflection.TargetInvocationExceptionThe type initializers were invoked and at least one threw an exception.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0