随笔分类 -  C# 编程

摘要:/// <summary> /// 判断对象是否为Int32类型的数字 /// </summary> /// <param name="Expression"></param> /// <returns></returns> public static bool IsNumeric(string e 阅读全文
posted @ 2022-01-12 20:28 探索的动机 阅读(66) 评论(0) 推荐(0)
摘要:/// <summary> /// 32位MD5加密 /// </summary> /// <param name="str"></param> /// <returns></returns> public static string MD5(string str) { try { var md5C 阅读全文
posted @ 2022-01-12 20:26 探索的动机 阅读(184) 评论(0) 推荐(0)
摘要:#region Bitmap 转为位图 /// <summary> /// Bitmap 转为位图 /// </summary> /// <param name="bitmap">Bitmap 对象</param> /// <returns>ImageSource 位图对象</returns> pu 阅读全文
posted @ 2021-12-26 21:56 探索的动机 阅读(2308) 评论(0) 推荐(1)
摘要:#region 字节流输出文件 /// <summary> /// 字节流输出文件 /// </summary> /// <param name="outPath">输出路径</param> /// <param name="buffer">文件的字节数组</param> public static 阅读全文
posted @ 2021-12-26 21:54 探索的动机 阅读(327) 评论(0) 推荐(0)
摘要:#region 判断文件是否被占用 /// <summary> /// 返回指示文件是否已被其它程序使用的布尔值 /// </summary> /// <param name="fileFullName">文件的完全限定名,例如:“C:\MyFile.txt”。</param> /// <retur 阅读全文
posted @ 2021-12-26 21:52 探索的动机 阅读(1353) 评论(0) 推荐(0)
摘要:#region 去除字符串中的所有汉字 /// <summary> /// 去除字符串中的所有汉字 /// </summary> /// <param name="strSource">要处理的字符串</param> /// <returns>不含汉字的字符串</returns> public st 阅读全文
posted @ 2021-12-26 21:51 探索的动机 阅读(870) 评论(0) 推荐(0)
摘要:public static List<string> SearchImage(string htmlText) { List<string> imgList = new List<string>(); Regex regImg = new Regex(@"<img\b[^<>]*?\bsrc[\s\ 阅读全文
posted @ 2021-12-26 21:47 探索的动机 阅读(468) 评论(0) 推荐(0)
摘要:1 Image _image = Image.FromStream(WebRequest.Create(severPath).GetResponse().GetResponseStream()); 阅读全文
posted @ 2019-01-18 22:16 探索的动机 阅读(431) 评论(0) 推荐(0)
摘要:1 <Window x:Class="AsynchronousLoading.MainWindow" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.micro 阅读全文
posted @ 2019-01-17 23:47 探索的动机 阅读(839) 评论(0) 推荐(0)