Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
what are this


public BinaryFormatter formatter = new BinaryFormatter();
     BinaryFormatter reader = new BinaryFormatter();
Posted

See the documentation on MSDN:
https://msdn.microsoft.com/en-us/library/system.runtime.serialization.formatters.binary.binaryformatter%28v=vs.110%29.aspx[^]
Quote:
Serializes and deserializes an object, or an entire graph of connected objects, in binary format.

An explanation binary serialization can be found here:
https://msdn.microsoft.com/en-us/library/72hyey7b%28v=vs.110%29.aspx[^]
 
Share this answer
 
Comments
Abhinav S 11-Apr-15 11:58am    
Of course! 5.
The BinaryFormatter class[^] allows you to serialize and serialize objects in binary format.

This diagram compares three types of formatters - http://www.dotneat.net/content/binary/serializationScreenReviewBig.png[^].

No non .Net systems can understand binary format serialized code. However, these formatters gives the best performance.
 
Share this answer
 
v2
Comments
Thomas Daniels 11-Apr-15 11:55am    
+5
Abhinav S 11-Apr-15 11:58am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900