Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ReflectionUtils.ToInterfaceArray Method

Convenience method to convert an interface Type to a Type array that contains all the interfaces inherited and the specified interface.

[Visual Basic]
Public Shared Sub ToInterfaceArray( _
   ByVal intf As Type _
)
[C#]
public static Type[] ToInterfaceArray(
   Type intf
);

Parameters

intf
The interface to convert.

Return Value

An array of interface Types.

Exceptions

Exception Type Condition
ArgumentException If the Type specified is not an interface.
ArgumentNullException If intf is a null reference (Nothing in Visual Basic).

See Also

ReflectionUtils Class | Spring.Util Namespace