EncodingConverter Class

Provides a type converter to convert Encoding instances to and from String or Int32 representations.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0-rc.1
C#
public sealed class EncodingConverter : TypeConverter
Inheritance
Object    TypeConverter    EncodingConverter

Constructors

EncodingConverterInitializes a new instance of the EncodingConverter class

Methods

CanConvertFrom Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
(Overrides TypeConverterCanConvertFrom(ITypeDescriptorContext, Type))
CanConvertTo Returns whether this converter can convert the object to the specified type, using the specified context.
(Overrides TypeConverterCanConvertTo(ITypeDescriptorContext, Type))
ConvertFrom Converts the given object to the type of this converter, using the specified context and culture information.
(Overrides TypeConverterConvertFrom(ITypeDescriptorContext, CultureInfo, Object))
ConvertTo Converts the given value object to the specified type, using the specified context and culture information.
(Overrides TypeConverterConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type))
GetStandardValues Returns a collection of standard values for the data type this type converter is designed for when provided with a format context.
(Overrides TypeConverterGetStandardValues(ITypeDescriptorContext))
GetStandardValuesSupported Returns whether this object supports a standard set of values that can be picked from a list, using the specified context.
(Overrides TypeConverterGetStandardValuesSupported(ITypeDescriptorContext))

Extension Methods

Convert Converts an Object specified in the obj parameter to the desired targetType.
See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example.
(Defined by ObjectExtensions)
ConvertTTarget Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions)
In Gets whether item is among the elements of set.
See the Examples section of the generic InT(T, T) overload for an example.
(Defined by ObjectExtensions)
TryConvert Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvert Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvertTTarget Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvertTTarget Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)

See Also