850

What is managed code and unmanaged code?

Managed code : Code executing under the control of the CLR is called a managed code. For example, any code written in C# or Visual Basic .NET is managed code. Unmanaged code: Code that runs outside the CLR is referred to as “unmanaged code.” COM components, ActiveX components, and Win32 API functions are examples of […]

Read More
718

What is boxing and unboxing?

Boxing: Boxing is the process of converting a Value type to the Reference type. When the CLR boxes a value type, it wraps the value inside a System.Object and stores it on the managed heap. Boxing is implicit. For example, the integer variable i is boxed and assigned to object j. int i = 1; obj j = i;   […]

Read More