2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-29 13:30:32 +01:00
waf/demos/csharp/Dye.cs
andreww 30097510a8 Demonstrate C# platform option.
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-04-17 20:42:33 +02:00

25 lines
395 B
C#

using System;
public class Dye {
private string msg = "";
public Dye(string _msg) {
msg = _msg;
}
private static string PointerSizeDescription {
get {
if (IntPtr.Size==8) {
return "64-bit";
} else if (IntPtr.Size==4) {
return "32-bit";
}
return "Unknown";
}
}
public void display() {
System.Console.WriteLine("{0} ({1})", msg, PointerSizeDescription);
}
}