Class ByteStreamTypeConverter
Special type converter that can convert the associated type to a byte array and vice-versa when
requested by the design-time, for example.
Inheritance
System.Object
ByteStreamTypeConverter
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class ByteStreamTypeConverter : ExpandableObjectConverter
Constructors
ByteStreamTypeConverter()
Declaration
public ByteStreamTypeConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
Type |
Name |
Description |
System.ComponentModel.ITypeDescriptorContext |
context |
|
System.Type |
sourceType |
|
Returns
CanConvertTo(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
Type |
Name |
Description |
System.ComponentModel.ITypeDescriptorContext |
context |
|
System.Type |
destinationType |
|
Returns
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Type |
Name |
Description |
System.ComponentModel.ITypeDescriptorContext |
context |
|
System.Globalization.CultureInfo |
culture |
|
System.Object |
value |
|
Returns
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
Type |
Name |
Description |
System.ComponentModel.ITypeDescriptorContext |
context |
|
System.Globalization.CultureInfo |
culture |
|
System.Object |
value |
|
System.Type |
destinationType |
|
Returns
OnAfterDeserialize()
Declaration
public virtual void OnAfterDeserialize()
OnBeforeDeserialize()
Declaration
public virtual void OnBeforeDeserialize()