public static string CPUBitsToString(CPUBits bits) { switch (bits) { case CPUBits.Bits32: return("32bit"); case CPUBits.Bits64: return("64bit"); case CPUBits.Both: return("intel"); } throw new ApplicationException("bits invalid."); }
public CPUBits Bits; // Bit length public Cpu(string name, string title, CPUBits bits) { this.Name = name; this.Title = title; this.Bits = bits; }
public static string CPUBitsToString(CPUBits bits) { switch (bits) { case CPUBits.Bits32: return "32bit"; case CPUBits.Bits64: return "64bit"; case CPUBits.Both: return "intel"; } throw new ApplicationException("bits invalid."); }