KGy SOFT

EncodingConverter Class

KGy SOFT Core Libraries Help
Provides a type converter to convert Encoding instances to and from String or Int32 representations.
Inheritance Hierarchy

SystemObject
  System.ComponentModelTypeConverter
    KGySoft.ComponentModelEncodingConverter

Namespace:  KGySoft.ComponentModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.4.0
Syntax

public sealed class EncodingConverter : TypeConverter

The EncodingConverter type exposes the following members.

Constructors

  NameDescription
Public methodEncodingConverter
Initializes a new instance of the EncodingConverter class
Top
Methods

  NameDescription
Public methodCanConvertFrom
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).)
Public methodCanConvertTo
Returns whether this converter can convert the object to the specified type, using the specified context.
(Overrides TypeConverterCanConvertTo(ITypeDescriptorContext, Type).)
Public methodConvertFrom
Converts the given object to the type of this converter, using the specified context and culture information.
(Overrides TypeConverterConvertFrom(ITypeDescriptorContext, CultureInfo, Object).)
Public methodConvertTo
Converts the given value object to the specified type, using the specified context and culture information.
(Overrides TypeConverterConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type).)
Public methodGetStandardValues
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).)
Public methodGetStandardValuesSupported
Returns whether this object supports a standard set of values that can be picked from a list, using the specified context.
(Overrides TypeConverterGetStandardValuesSupported(ITypeDescriptorContext).)
Top
Extension Methods

  NameDescription
Public Extension MethodConvert(Type, CultureInfo)Overloaded.
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.)
Public Extension MethodCode exampleConvertTTarget(CultureInfo)Overloaded.
Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions.)
Public Extension MethodIn (Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, CultureInfo, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvertTTarget(TTarget)Overloaded.
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.)
Public Extension MethodTryConvertTTarget(CultureInfo, TTarget)Overloaded.
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.)
Top
See Also

Reference