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

Afficher le fichier Open project: ChadBurggraf/plists-cs

Méthodes publiques

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

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

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

ReadObject() public méthode

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

WriteObject() public méthode

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

WriteObject() public méthode

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