Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ReflectionUtils.GetTypes Method

Returns an array containing the Types of the objects in the supplied array.

[Visual Basic]
Public Shared Sub GetTypes( _
   ByVal args As Object _
)
[C#]
public static Type[] GetTypes(
   object[] args
);

Parameters

args
The objects array for which the corresponding Types are needed.

Return Value

An array containing the Types of the objects in the supplied array; this array will be empty (but not a null reference (Nothing in Visual Basic) if the supplied args is null or has no elements.

Example

[C#]
Given an array containing the following objects,

[83, "Foo", new object ()]
, the Type array returned from this method call would consist of the following Type elements...
[Int32, String, Object]
.

See Also

ReflectionUtils Class | Spring.Util Namespace