C# Класс Microsoft.Protocols.TestSuites.SharedAdapter.BinaryItem

This class specifies arbitrary binary stream of data.
Наследование: BasicObject
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

BinaryItem() публичный Метод

Initializes a new instance of the BinaryItem class.
public BinaryItem ( ) : System.Collections.Generic
Результат System.Collections.Generic

BinaryItem() публичный Метод

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.
Результат System.Collections.Generic

DoDeserializeFromByteArray() защищенный Метод

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.
Результат int

Equals() публичный Метод

Override the Equals method.
public Equals ( object obj ) : bool
obj object Specify the object.
Результат bool

GetHashCode() публичный Метод

Override the GetHashCode method.
public GetHashCode ( ) : int
Результат int

SerializeToByteList() публичный Метод

This method is used to convert the element of BinaryItem basic object into a byte List.
public SerializeToByteList ( ) : List
Результат List