2012-04-17 10:36:22 +02:00
|
|
|
using System;
|
|
|
|
|
2011-09-10 11:13:51 +02:00
|
|
|
public class Dye {
|
|
|
|
private string msg = "";
|
|
|
|
|
|
|
|
public Dye(string _msg) {
|
|
|
|
msg = _msg;
|
|
|
|
}
|
|
|
|
|
2012-04-17 10:36:22 +02:00
|
|
|
private static string PointerSizeDescription {
|
|
|
|
get {
|
|
|
|
if (IntPtr.Size==8) {
|
|
|
|
return "64-bit";
|
|
|
|
} else if (IntPtr.Size==4) {
|
|
|
|
return "32-bit";
|
|
|
|
}
|
|
|
|
return "Unknown";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-09-10 11:13:51 +02:00
|
|
|
public void display() {
|
2012-04-17 10:36:22 +02:00
|
|
|
System.Console.WriteLine("{0} ({1})", msg, PointerSizeDescription);
|
2011-09-10 11:13:51 +02:00
|
|
|
}
|
|
|
|
}
|