What are the concepts of DISPOSE method in .NET?

What are the concepts of DISPOSE method?

Dispose method belongs to IDisposable interface. It is used to free unmanaged resources like files, network connection etc. it manages and handles this by an instance of the class that implements this interface. Dispose methods must be called explicitly and hence the any object using IDisposable must also implement finalizer to free resources in situations wherein Dispose is not called. Multiple calls to dispose method must be ignored when called once. The objects disposable methods must be called in the order of containment.
Serialization in .NET
Serialization in .NET - System.Runtime.Serialization namespace provides Serialization in .NET...
Advantages of binary serialization
Advantages of binary serialization - An object is stored in a file, a database or even in the memory....
How do you encapsulate the binary serialization?
How do you encapsulate the binary serialization? - public static void SerializeBinary( object o, string file_name)...
Post your comment