This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 27th, 2011  |  syntax: None  |  size: 0.52 KB  |  views: 60  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. {
  2.     class Program
  3.     {
  4.         static void Main(string[] args)
  5.         {
  6.             int x;
  7.             int y;
  8.             x = 8;
  9.             y = x;
  10.             y = 6;
  11.  
  12.             Console.WriteLine("x = " + x);
  13.  
  14.             MyInt X = new MyInt();
  15.             MyInt Y = new MyInt();
  16.  
  17.             X.num = 8;
  18.             Y = X;
  19.             Y.num = 6;
  20.  
  21.             Console.WriteLine("X = " + X.num);
  22.             Console.ReadLine();
  23.         }
  24.     }
  25.  
  26.     class MyInt
  27.     {
  28.         public int num;
  29.     }
  30. }
  31.  
clone this paste RAW Paste Data