C# Class System.Runtime.Serialization.Plists.DataContractBinaryPlistSerializer

ファイルを表示 Open project: ChadBurggraf/plists-cs

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

DataContractBinaryPlistSerializer() public method

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.
return System

ReadObject() public method

Reads an object from the specified stream.
public ReadObject ( Stream stream ) : object
stream Stream The stream to read from.
return object

WriteObject() public method

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.
return void

WriteObject() public method

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.
return void