C# Класс System.Runtime.Serialization.Plists.DataContractBinaryPlistSerializer

Показать файл Открыть проект

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

Метод Описание
DataContractBinaryPlistSerializer ( Type type ) : System

Initializes a new instance of the DataContractBinaryPlistSerializer class.

ReadObject ( Stream stream ) : object

Reads an object from the specified stream.

WriteObject ( Stream stream, object graph ) : void

Writes the complete contents of the given object to the specified stream.

WriteObject ( Stream stream, object graph, bool closeStream ) : void

Writes the complete contents of the given object to the specified stream.

Приватные методы

Метод Описание
GetReadablePlistObject ( Type type, object obj ) : object

Gets the readable plist value of the given object identified by the specified type.

GetWritablePlistObject ( Type type, object obj ) : object

Gets the writable plist value of the given object identified by the specified type.

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

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

Initializes a new instance of the DataContractBinaryPlistSerializer class.
public DataContractBinaryPlistSerializer ( Type type ) : System
type System.Type The type of the instances that are serialized or de-serialized.
Результат System

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

Reads an object from the specified stream.
public ReadObject ( Stream stream ) : object
stream Stream The stream to read from.
Результат object

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

Writes the complete contents of the given object to the specified stream.
public WriteObject ( Stream stream, object graph ) : void
stream Stream The stream to write to.
graph object The object to write.
Результат void

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

Writes the complete contents of the given object to the specified stream.
public WriteObject ( Stream stream, object graph, bool closeStream ) : void
stream Stream The stream to write to.
graph object The object to write.
closeStream bool A value indicating whether to close the stream after the write operation completes.
Результат void