2005年上半年软件评测师级答案 上午答案 (1) A (16) B (31) B (46) C (61) C (2) D (17) A (32) A (47) B (62) B (3) A (18) A (33) A (48) C (63) D (4) B (19) B (34) B (49) D (64) D (5) B (20) A (35) C (50) B (65) A (6) C (21) B (36) D (51) C (66) B (7) D (22) C (37) B (52
本文实例讲述了C#获取机器码的方法。分享给大家供大家参考,具体如下:
using System.Runtime.InteropServices;
using System.Management;
using System;
public class HardwareInfo
{
//取机器名
public string GetHostName()
{
return System.Net.Dns.GetHostName();
}
//取CPU编号
public Str