C# Class System.Runtime.Serialization.Formatters.Binary.BinaryFormatter

Inheritance: IRemotingFormatter, IFormatter
显示文件 Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
BinaryFormatter ( ) : System
BinaryFormatter ( System selector, System context ) : System
BinaryFormatter ( ) : System.IO
BinaryFormatter ( ISurrogateSelector selector, StreamingContext context ) : System.IO
Deserialize ( Stream serializationStream ) : object
Deserialize ( System serializationStream ) : object
Serialize ( Stream serializationStream, object graph ) : void
Serialize ( System serializationStream, object graph ) : void

Private Methods

Method Description
Deserialize ( Stream serializationStream, bool check ) : object
GetTypeInformation ( Type type ) : TypeInformation
Serialize ( Stream serializationStream, object graph, bool check ) : void

Method Details

BinaryFormatter() public method

public BinaryFormatter ( ) : System
return System

BinaryFormatter() public method

public BinaryFormatter ( System selector, System context ) : System
selector System
context System
return System

BinaryFormatter() public method

public BinaryFormatter ( ) : System.IO
return System.IO

BinaryFormatter() public method

public BinaryFormatter ( ISurrogateSelector selector, StreamingContext context ) : System.IO
selector ISurrogateSelector
context System.Runtime.Serialization.StreamingContext
return System.IO

Deserialize() public method

public Deserialize ( Stream serializationStream ) : object
serializationStream Stream
return object

Deserialize() public method

public Deserialize ( System serializationStream ) : object
serializationStream System
return object

Serialize() public method

public Serialize ( Stream serializationStream, object graph ) : void
serializationStream Stream
graph object
return void

Serialize() public method

public Serialize ( System serializationStream, object graph ) : void
serializationStream System
graph object
return void