Dye.cs 395 B

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