07 2020 档案

动态调用webservice
摘要:public class WebServiceHelper { /// <summary> /// 动态调用WebService /// </summary> /// <param name="url">WebService地址</param> /// <param name="methodname 阅读全文

posted @ 2020-07-28 15:57 AbelAngelo 阅读(101) 评论(0) 推荐(0)

C#随机数
摘要:var ran = new Random(); ran.Next(99); //随机数值 阅读全文

posted @ 2020-07-08 11:41 AbelAngelo 阅读(146) 评论(0) 推荐(0)

C#动态生成json
摘要:public class AddModel { //AppID(接口提供方提供) public string appid { get; set; } //数据Base64加密 public string data { get; set; } //随机数 public string noise { g 阅读全文

posted @ 2020-07-03 13:39 AbelAngelo 阅读(629) 评论(0) 推荐(0)

C#使用UUID生成ID
摘要:tring id = System.Guid.NewGuid().ToString(); 一句话即可,但此时id中有“-”符号存在,使用下面语句可变为纯字母+数字。 string id = System.Guid.NewGuid().ToString("N"); 阅读全文

posted @ 2020-07-03 11:17 AbelAngelo 阅读(336) 评论(0) 推荐(0)

ini文件读取
摘要:public class IniConfigHelp { [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key, string val, stri 阅读全文

posted @ 2020-07-03 10:50 AbelAngelo 阅读(220) 评论(0) 推荐(0)

Base64加密和解密方式
摘要:public class Base64 { ///编码 code_type 编码方式(UTF-8),code 编码内容 public static string EncodeBase64(string code_type, string code) { string encode = ""; byt 阅读全文

posted @ 2020-07-03 09:44 AbelAngelo 阅读(198) 评论(0) 推荐(0)

导航