摘要:
static void Main(string[] args) { System.Security.Cryptography.CspParameters para = new System.Security.Cryptography.CspParameters(); para.KeyContainerName = "g"; para.KeyNumber = 2; System.Security.Cryptography.RSACryptoServiceProvider rs = new Sy... 阅读全文
摘要:
static void Main(string[] args) { string mailAddress_from="yftan@chinchool.net"; System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient("smtp.chinool.net", 25); client.Credentials = new System.Net.NetworkCredential(mailAddress_from, ""); ... 阅读全文
摘要:
[Microsoft.SqlServer.Server.SqlFunction(DataAccess = Microsoft.SqlServer.Server.DataAccessKind.Read)] public static int GetRadioScore(string StandardAnswer, string StudentAnswer, int ProblemScore, int MRQPartialScore) { using (System.Data.SqlClient.SqlConnection conn = new System.Da... 阅读全文
摘要:
服务端: class Program { static int maxNumberOfServerInstances =10; static void Main(string[] args) { Console.WriteLine("我是服务端"); //创建多个实例,10定义的是表示一个机器上使用同一管道名称的实例最多10个。最大允许254个 for (int i = 0; i < maxNumberOfServerInstances; i++) { ... 阅读全文