Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ReflectionUtils.GetDefaultValues Method

Returns an array consisting of the default values for the supplied types.

[Visual Basic]
Public Shared Sub GetDefaultValues( _
   ByVal types As Type _
)
[C#]
public static object[] GetDefaultValues(
   Type[] types
);

Parameters

types
The array of Types to return default values for.

Return Value

An array consisting of the default values for the supplied types.

Exceptions

Exception Type Condition
ArgumentException If any of the elements in the supplied types array is an enumerated type that has no values.

See Also

ReflectionUtils Class | Spring.Util Namespace | GetDefaultValue