Well, C# DOES have a typedef.

using Num = System.Int32 ;  // PRETTY MUCH typedef equivalent

static class Program
{
  static void Main()
  {
    Num x = 5 ;  // Num is completely equivalent to System.Int32;
    int y = 78 ;

  }
}

Post a Comment