System.ComponentModel.TimeSpanConverter Class

Provides a type converter to convert TimeSpan objects to and from other representations.

See Also: TimeSpanConverter Members


public class TimeSpanConverter : TypeConverter


This converter can only convert a TimeSpan object to and from a string.

For more information about type converters, see the System.ComponentModel.TypeConverter base class and How to: Implement a Type Converter.


You should never create an instance of a System.ComponentModel.TimeSpanConverter. Instead, call the TypeDescriptor.GetConverter(object) method of the System.ComponentModel.TypeDescriptor class. For more information, see the examples in the System.ComponentModel.TypeConverter base class.


Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,,