Data Type C# Tutorial

using System;
public class Example
{
   public static void Main()
   {
      sbyte value = -123;
      Console.WriteLine(value.ToString());            
      Console.WriteLine(value.ToString("G"));         
      Console.WriteLine(value.ToString("C"));         
      Console.WriteLine(value.ToString("D"));         
      Console.WriteLine(value.ToString("F"));         
      Console.WriteLine(value.ToString("N"));         
      Console.WriteLine(value.ToString("X"));         
   }
}