How would you like to MASTER graphic design by next week?
Click here to find out how
Featured Photoshop templates - professional ready to use designs for your next project
View all templates
C++ Copy Tutorials
Binary Serialization In C#
In a previous tutorial we talked about serialization and the various option for formatting its data output. In this document we will talk about binary serialization. Binary serialization is used for communication between .Net applications and is not a human-readable format. Windows relies on serialization for many important tasks such as remoting and copying items to the clipboard.
STRUCTS In C#
Structs, similar to classes, are used to define various objects in your code. They are stored on the stack, rather than in the managed heap. This means that they are value-type objects and thus, when you pass a struct as a parameter in a function, a copy of the object is actually passed to that function. This can affect the performance of your code if you use structs for large objects. However, since the .Net does not bring in the managed heap, structs are more suitable for small objects of limited functionality and with no inheritance capabilities.