Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

TimeSpanConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method

Convert from a string value to a TimeSpan instance.

[Visual Basic]
Public Overrides Overloads Sub ConvertFrom( _
   ByVal context As ITypeDescriptorContext, _
   ByVal culture As CultureInfo, _
   ByVal value As Object _
)
[C#]
public override object ConvertFrom(
   ITypeDescriptorContext context,
   CultureInfo culture,
   object value
);

Parameters

context
A ITypeDescriptorContext that provides a format context.
culture
The CultureInfo to use as the current culture.
value
The value that is to be converted.

Return Value

A TimeSpan if successful.

See Also

TimeSpanConverter Class | Spring.Core.TypeConversion Namespace | TimeSpanConverter.ConvertFrom Overload List