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

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

BinaryItem() public méthode

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.
Résultat System.Collections.Generic

DoDeserializeFromByteArray() protected méthode

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.
Résultat int

Equals() public méthode

Override the Equals method.
public Equals ( object obj ) : bool
obj object Specify the object.
Résultat bool

GetHashCode() public méthode

Override the GetHashCode method.
public GetHashCode ( ) : int
Résultat int

SerializeToByteList() public méthode

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