Introduction The code then execute in CLR (Common Language Runtine) is called managed code. And the code execute outside the scope of CLR is known as unmanaged code. The examples of unmanaged code is COM component, some database call etc. CLR is responsible for cleanup managed code. But for clean up unmanaged code we need to do some thing extra...
Category - C#
Definition Encapsulation is the process of hiding irrelevant data from the user. Or in other word encapsulation is a process of hiding all the internal details of an object from the outside world.Abstraction is just opposite of encapsulation. Abstraction is mechanism to show only relevant data to user. Hence it is a process of representation of...
C# provides many built in exiting features to make developer life easy. SmtpClient class is one of them. SmtpClient has every thing that we need to send email from our application. Namespace : System.Net The following program illustrate how to send email using SmtpClient from our Asp.Net application. SmtpClient s = new SmtpClient(); s.Host =...
Serialization is a process of converting object into stream of bytes. And deserialization is a process of getting object back from serialization form. According to MSDN “Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory, a database, or a file. Its main purpose is...
XML Serialization XML Serialization serialize only public fields, properties of an object and parameters and return value of a method. That is why it is called Shallow Serialization. XML serialization results in strongly typed classes with public properties and fields that are converted to XML. System.Xml.Serialization has all the classes and...