A C# int is a shorthand for System.Int32, which inherits the following members from System.Object : Integer Family « Data Type « C# / CSharp Tutorial






using System;
using System.Collections.Generic;
using System.Text;


  class Program
  {
    static void Main(string[] args)
    {
      Console.WriteLine("12.GetHashCode() = {0}", 12.GetHashCode());
      Console.WriteLine("12.Equals(23) = {0}", 12.Equals(23));
      Console.WriteLine("12.ToString() = {0}", 12.ToString());
      Console.WriteLine("12.GetType() = {0}", 12.GetType());
    }

  }








2.4.Integer Family
2.4.1.Family of Integers
2.4.2.Integer Types
2.4.3.Integer ranges
2.4.4.Use 'is' for int value type
2.4.5.A C# int is a shorthand for System.Int32, which inherits the following members from System.Object
2.4.6.Shifting an integer value