Provides a type converter to convert any Object to and from base64 encoded String or byte array representations.
Inheritance Hierarchy
System.ComponentModelTypeConverter
KGySoft.ComponentModelBinaryTypeConverter
Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.5.0-rc.1
Syntax
The BinaryTypeConverter type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | BinaryTypeConverter | Initializes a new instance of the BinaryTypeConverter class |
Methods
Name | Description | |
---|---|---|
![]() | 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 its original type.
(Overrides TypeConverterConvertFrom(ITypeDescriptorContext, CultureInfo, Object).) |
![]() | ConvertTo |
Converts the given value object to the specified type.
(Overrides TypeConverterConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type).) |
Extension Methods
Name | Description | |
---|---|---|
![]() | Convert(Type, CultureInfo) | Overloaded.
Converts an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example. |
![]() ![]() | ConvertTTarget(CultureInfo) | Overloaded. (Defined by ObjectExtensions.) |
![]() | In |
Gets whether item is among the elements of set.
(Defined by ObjectExtensions.)See the Examples section of the generic InT(T, T) overload for an example. |
![]() | TryConvert(Type, Object) | Overloaded. (Defined by ObjectExtensions.) |
![]() | TryConvert(Type, CultureInfo, Object) | Overloaded. (Defined by ObjectExtensions.) |
![]() | TryConvertTTarget(TTarget) | Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions.)See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example. |
![]() | TryConvertTTarget(CultureInfo, TTarget) | Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions.)See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example. |
See Also