摘要: public List GetRangesByUnit(string unit, DateTime start, DateTime end) { //根据单位获取时间段的数组 unit:M,W,D List list = new List(); //获取两个时间相差的天数 ... 阅读全文
posted @ 2017-12-28 09:43 墨水心2016 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 第一件事就是注册域名:建议测试者购买国际域名。可以不用备案。国内域名.cn备案后才能通过验证。 有了域名后开始: 一,新建域名: 如果有企业邮箱建议使用二级域名: 单击“配置”查看配置信息: 然后对域名进行解析:找到域名管理,单击解析: 单击“解析”: 设置好之后单击“启用”:(等几分钟) 单击“验 阅读全文
posted @ 2016-10-26 20:15 墨水心2016 阅读(2353) 评论(1) 推荐(0) 编辑
摘要: 创建短信签名 等待审核通过后创建短信模板: 等待审核通过: C# SDK 使用教程 创建Access Key 登陆阿里云账号 打开“我的Access Key”页面,页面地址:https://ak-console.aliyun.com/#/accesskey/ 创建Access Key (注:也可以使 阅读全文
posted @ 2016-10-26 17:10 墨水心2016 阅读(13840) 评论(3) 推荐(2) 编辑
摘要: bool StartsWith(string) 是否已次字符串开头 bool EndWith(string) 是否已次字符串结尾 ToCharArray() 转换成字符数组 Contains(string ) 是否包含有次字符串 Replace(char,char);Replace(string,s 阅读全文
posted @ 2016-10-24 15:32 墨水心2016 阅读(108) 评论(0) 推荐(0) 编辑
摘要: System.Drawing.Image tempimage = System.Drawing.Image.FromStream(imgFile.InputStream, true); int imagewidth = tempimage.Width;//宽 int imageheight = tem... 阅读全文
posted @ 2016-10-24 15:32 墨水心2016 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 1 public static string _KEY = "HQDCKEY1"; //密钥 2 public static string _IV = "HQDCKEY2"; //向量 3 4 /// 5 /// DES加密 6 /// 7 /// ... 阅读全文
posted @ 2016-10-24 15:32 墨水心2016 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 还有一个较为简单的:直接调用C#内置的方法: 1 string pwd2 = FormsAuthentication.HashPasswordForStoringInConfigFile(pwd, "md5"); 阅读全文
posted @ 2016-10-24 15:32 墨水心2016 阅读(138) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FileStreamCopy { class Program { static... 阅读全文
posted @ 2016-10-24 15:31 墨水心2016 阅读(187) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Example { class Program { static void Main(string[] args) ... 阅读全文
posted @ 2016-10-24 15:31 墨水心2016 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Delete(string path) 删除指定位置的文件 bool Exist(string path) 判断指定位置的文件是否存在 ReadAllLines(string path) 打开一个文本文件,读取文件的所有行,然后关闭该文件。 WriteAllLines(string path, st 阅读全文
posted @ 2016-10-24 15:31 墨水心2016 阅读(102) 评论(0) 推荐(0) 编辑