Dye.cs (395B)
1 using System; 2 3 public class Dye { 4 private string msg = ""; 5 6 public Dye(string _msg) { 7 msg = _msg; 8 } 9 10 private static string PointerSizeDescription { 11 get { 12 if (IntPtr.Size==8) { 13 return "64-bit"; 14 } else if (IntPtr.Size==4) { 15 return "32-bit"; 16 } 17 return "Unknown"; 18 } 19 } 20 21 public void display() { 22 System.Console.WriteLine("{0} ({1})", msg, PointerSizeDescription); 23 } 24 }