StringConverter
Class
Definition
Provides a type converter to convert string objects to and from other representations.
public class StringConverter : System.ComponentModel.TypeConverter
- Inheritance
- Derived
Inherited Members
System.ComponentModel.TypeConverter
System.Object
Remarks
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 How to: Implement 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.
Constructors
| StringConverter() |
Initializes a new instance of the StringConverter class. |
Methods
| CanConvertFrom(ITypeDescriptorContext, Type) |
Gets a value indicating whether this converter can convert an object in the given source type to a string using the specified context. |
| ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) |
Converts the specified value object to a String object. |