摘要: Visual Studio 2022 Professional(专业版): TD244-P4NB7-YQ6XK-Y8MMM-YWV2J Enterprise(企业版): VHF9H-NXBBB-638P6-6JHCY-88JWH Visual Studio 2019 Professional(专业版 阅读全文
posted @ 2023-05-12 11:48 ₯㎕~ 阅读(3237) 评论(0) 推荐(0) 编辑
摘要: 2022-08-12 13:50:11 #region byte[]和Image互相转换 /// <summary> /// 字节流转图片 /// </summary> /// <param name="Bytes">字节数组</param> /// <returns>图片</returns> pr 阅读全文
posted @ 2022-08-12 13:52 ₯㎕~ 阅读(112) 评论(0) 推荐(0) 编辑
摘要: public class HttpClientHelper { const string CRLF = "\r\n"; /// <summary> /// POST 使用multipart/form-data方式上传文件及提交其他数据 /// 基于“Basic Auth”口令认证模式 /// </s 阅读全文
posted @ 2022-06-27 17:02 ₯㎕~ 阅读(76) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// Http网络请求帮助类 /// </summary> public class HttpClientHelper { private static HttpClientHelper _httpClientHelper; public static HttpClie 阅读全文
posted @ 2022-06-27 16:59 ₯㎕~ 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 在C#winform中,可以用Control.MousePosition获得当前鼠标的坐标,使用PointToClient计算鼠标相对于某个控件的坐标 //鼠标相对于屏幕左上角的坐标 Point screenPoint = Control.MousePosition; //鼠标相对于窗体左上角的坐标 阅读全文
posted @ 2022-05-19 16:39 ₯㎕~ 阅读(473) 评论(0) 推荐(0) 编辑
摘要: #region 获取人员姓名首拼 /// <summary> /// 获取姓名拼音的缩写 /// </summary> /// <param name="str"></param> /// <returns></returns> public static string GetPYString(st 阅读全文
posted @ 2022-04-14 16:38 ₯㎕~ 阅读(48) 评论(0) 推荐(0) 编辑
摘要: ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; 阅读全文
posted @ 2022-03-17 15:54 ₯㎕~ 阅读(982) 评论(0) 推荐(0) 编辑
摘要: //关于C#中默认的Distinct方法在什么情况下才能去重,这个就不用我再多讲,针对集合对象去重默认实现将不再满足,于是乎我们需要自定义实现来解决这个问题,接下来我们详细讲解几种常见去重方案。//定义一个对象 public class User { public int Age{ get; set 阅读全文
posted @ 2022-03-14 16:36 ₯㎕~ 阅读(1675) 评论(0) 推荐(0) 编辑
摘要: * application/octet-stream (iis 6.0 处理所有未知类型) 阅读全文
posted @ 2022-03-09 11:21 ₯㎕~ 阅读(89) 评论(0) 推荐(0) 编辑
摘要: //定义人员类 class Staff { public int Id { get; set; } public string Name { get; set; } public int Age{ get; set; } } //将数组转换为List,先创建一个staff类型的数组。 //创建数组 阅读全文
posted @ 2020-12-21 12:06 ₯㎕~ 阅读(975) 评论(0) 推荐(0) 编辑