loading
main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;

class MainClass {
  public static void Main (string[] args) {
    
    int i = 5;


    // Boxing copies the value of i into object o.
    object o = i; // implicit boxing

    int j = (int)o; // explicit unboxing

    // Change the value of i.
    i = 3;

    // The change in i doesn't affect the value stored in o.
    System.Console.WriteLine("The value-type value = {0}", i);
    System.Console.WriteLine("The object-type value = {0}", o);

  }
}