This documentation is archived and is not being maintained.

StringConverter Class

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

For a list of all members of this type, see StringConverter Members.


[Visual Basic]
Public Class StringConverter
   Inherits TypeConverter
public class StringConverter : TypeConverter
public __gc class StringConverter : public TypeConverter
public class StringConverter extends TypeConverter

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


This converter can only convert to a string. It works as a pass through for other converters that want to convert an object to a string.

For more information about type converters, see the TypeConverter base class and Implementing a Type Converter.

Note   You should never create an instance of StringConverter. Instead, call the GetConverter method of TypeDescriptor. For more information, see the examples in the TypeConverter base class.


Namespace: System.ComponentModel

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

StringConverter Members | System.ComponentModel Namespace