C# Class Microsoft.Protocols.TestSuites.SharedAdapter.BinaryItem

This class specifies arbitrary binary stream of data.
Inheritance: BasicObject
Show file Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Public Methods

Method Description
BinaryItem ( ) : System.Collections.Generic

Initializes a new instance of the BinaryItem class.

BinaryItem ( IEnumerable content ) : System.Collections.Generic

Initializes a new instance of the BinaryItem class with the specified content.

Equals ( object obj ) : bool

Override the Equals method.

GetHashCode ( ) : int

Override the GetHashCode method.

SerializeToByteList ( ) : List

This method is used to convert the element of BinaryItem basic object into a byte List.

Protected Methods

Method Description
DoDeserializeFromByteArray ( byte byteArray, int startIndex ) : int

This method is used to de-serialize the BinaryItem basic object from the specified byte array and start index.

Method Details

BinaryItem() public method

Initializes a new instance of the BinaryItem class.
public BinaryItem ( ) : System.Collections.Generic
return System.Collections.Generic

BinaryItem() public method

Initializes a new instance of the BinaryItem class with the specified content.
public BinaryItem ( IEnumerable content ) : System.Collections.Generic
content IEnumerable Specify the binary content.
return System.Collections.Generic

DoDeserializeFromByteArray() protected method

This method is used to de-serialize the BinaryItem basic object from the specified byte array and start index.
protected DoDeserializeFromByteArray ( byte byteArray, int startIndex ) : int
byteArray byte Specify the byte array.
startIndex int Specify the start index from the byte array.
return int

Equals() public method

Override the Equals method.
public Equals ( object obj ) : bool
obj object Specify the object.
return bool

GetHashCode() public method

Override the GetHashCode method.
public GetHashCode ( ) : int
return int

SerializeToByteList() public method

This method is used to convert the element of BinaryItem basic object into a byte List.
public SerializeToByteList ( ) : List
return List