Random random = new Random(~unchecked((int)DateTime.Now.Ticks));private string CreateAndCheckCode(Random random, string code, int length) // code 激活码前缀 { char[] Pattern = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', '