Boxing makes it possible to call methods on a value! : Boxing Unboxing « Data Type « C# / CSharp Tutorial






using System; 
 
class MainClass { 
  public static void Main() { 
 
    Console.WriteLine(10.ToString()); 
 
  } 
}
10








2.53.Boxing Unboxing
2.53.1.A boxing/unboxing example.
2.53.2.Boxing occurs when passing values
2.53.3.Illustrate automatic boxing during function call
2.53.4.Boxing makes it possible to call methods on a value!
2.53.5.Change the value after boxing