C# Class Tp.Integration.Messages.ServiceBus.Serialization.BinaryContainerTypeConverter

XmlBinaryContainer TypeConverter. Converts the XmlBinaryContainer to or from byte[] and Streams.
Inheritance: System.ComponentModel.TypeConverter
Exibir arquivo Open project: TargetProcess/Target-Process-Plugins Class Usage Examples

Public Methods

Method Description
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

CanConvertFrom

CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool

CanConvertTo

ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object

ConvertFrom

ConvertStreamToByteArray ( Stream s ) : byte[]

Converts a Stream into byte[].

ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object

ConvertTo

Method Details

CanConvertFrom() public method

CanConvertFrom
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext
sourceType System.Type
return bool

CanConvertTo() public method

CanConvertTo
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
return bool

ConvertFrom() public method

ConvertFrom
public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
return object

ConvertStreamToByteArray() public method

Converts a Stream into byte[].
public ConvertStreamToByteArray ( Stream s ) : byte[]
s Stream
return byte[]

ConvertTo() public method

ConvertTo
public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destinationType System.Type
return object