随笔分类 -  C#

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要:https://www.cnblogs.com/xiaochu/p/4402195.html MD5加密字符串并转化为base64(C#和PHP代码相同实现) PHP 代码 function Md5Base64($data){ $md5hex=md5($data); $len=strlen($md5 阅读全文
posted @ 2021-03-09 09:20 LuoCore 阅读(235) 评论(0) 推荐(0)
摘要:Order.OrderRequest m = new Order.OrderRequest(); m.Request = new Order.OrderRequest.RequestModel(); m.Request.service = "123"; m.Request.lang = "zzz"; 阅读全文
posted @ 2021-03-06 10:43 LuoCore 阅读(244) 评论(0) 推荐(0)
摘要:不知道怎么表达这个东西,先记录一下吧,如果你们有好的想法可以联系我,共同进步 /// <summary> /// 自定义属性帮助类 /// </summary> public class AttributeHelper { /// <summary> /// 获取字符串字节长度 /// </summ 阅读全文
posted @ 2021-03-04 16:01 LuoCore 阅读(857) 评论(0) 推荐(0)
摘要:http://www.voidcn.com/article/p-ygmrcitj-bye.html using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; pu 阅读全文
posted @ 2021-03-04 13:33 LuoCore 阅读(96) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/xiarongrong/p/5168713.html /// <summary> /// 获取字符串字节长度 /// </summary> /// <param name="str"></param> /// <returns></returns> p 阅读全文
posted @ 2021-03-04 13:18 LuoCore 阅读(727) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/wangbg/p/14020022.html https://docs.microsoft.com/zh-cn/dotnet/api/system.runtime.serialization.datacontractserializer?view=ne 阅读全文
posted @ 2021-02-26 14:37 LuoCore 阅读(2126) 评论(0) 推荐(1)
摘要:https://blog.csdn.net/a11112244444/article/details/78921200 https://www.cnblogs.com/chongde/articles/5992040.html /// <summary> /// 实体类转换成DataTable // 阅读全文
posted @ 2021-02-26 11:18 LuoCore 阅读(1216) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/minotauros/p/10773258.html /// <summary> /// 时间工具类 /// </summary> public static class DateTimeUtil { /// <summary> /// 时间戳计时开始 阅读全文
posted @ 2021-01-21 17:04 LuoCore 阅读(492) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/qiqingli/article/details/88992029 winformTextBox 下拉框自动提示、自动补全功能AutoCompleteCustomSource 关键属性: 1.AutoCompleteCustomSource 功能:自定义所 阅读全文
posted @ 2021-01-20 15:46 LuoCore 阅读(1383) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/qq_38762313/article/details/100161149 对象转json字符串 string jsStr=Newtonsoft.Json.JsonConvert.SerializeObject(对象) json字符串转对象 User us 阅读全文
posted @ 2021-01-13 15:50 LuoCore 阅读(143) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/qq_43137834/article/details/104070561 var week_day = CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(Date.DayOfWeek); 阅读全文
posted @ 2020-12-14 16:26 LuoCore 阅读(127) 评论(0) 推荐(0)
摘要:可以看下他的响应Body catch (WebException ex) { if (ex.Status == WebExceptionStatus.ProtocolError) { HttpWebResponse err = ex.Response as HttpWebResponse; if ( 阅读全文
posted @ 2020-11-30 14:49 LuoCore 阅读(1354) 评论(2) 推荐(1)
摘要:ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;https://stackoverflow.com/qu 阅读全文
posted @ 2020-11-30 14:18 LuoCore 阅读(409) 评论(0) 推荐(1)
摘要:public Bitmap AddText(string DrawText) { Bitmap bmp = new Bitmap(350, 300); Graphics g = Graphics.FromImage(bmp); Rectangle rect = new Rectangle(0, 0, 阅读全文
posted @ 2020-11-29 12:04 LuoCore 阅读(677) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/johntom/archive/2012/04/06/2435273.html C# 23种设计模式 创建型模式工厂方法(Factory Method)在工厂方法模式中,工厂方法用来创建客户所需要的产品,同时还向客户隐藏了哪种具体产品类将被实例化这一细 阅读全文
posted @ 2020-09-30 11:41 LuoCore 阅读(230) 评论(0) 推荐(0)
摘要:百度查了好久都每找到自己想要的效果 经过一天头痛的摸索终于弄出来了,关键在于Points /// <summary> /// 更新图像图 /// </summary> public void ChartSeriesDataPoint(double dP1, double dP2, double dP 阅读全文
posted @ 2020-07-29 17:40 LuoCore 阅读(1286) 评论(0) 推荐(0)
摘要:BIG阳 通过BAse 来用,在子类中,你调用的类型要和父类的调用类型相同才行,不然会出错class A {public A(int a, int b) {}}class B : A {public B (int a, int b, int x, int y) : base(a, b) {}} ht 阅读全文
posted @ 2020-07-02 15:04 LuoCore 阅读(828) 评论(0) 推荐(0)
摘要:最近一直在百度,查了好久vs 的各种快捷键,但是就是没有找到关于重新生产的快捷件是什么,今天突然打打代码,无意中按倒了,居然就是 ctrl+b 就是重新生产当前编辑文档的dll 阅读全文
posted @ 2020-05-26 09:56 LuoCore 阅读(856) 评论(0) 推荐(0)
摘要:可能有点词不达意,我是这样理解的,如果有不对,请大家指点一二。通过查资料发现这个只有在C# 7.0 中才有的,慎用 在使用前需要引用 System.ValueTuple (bool state, string msg) retRep = new ValueTuple<bool, string>(fa 阅读全文
posted @ 2020-05-15 09:35 LuoCore 阅读(220) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/xuezhizhang/p/8968515.html 关键是这个 ThoughtWorks.QRCode.Codec; NuGet直接下载就可以了 /// <summary> /// 读取图片文件,识别二维码 /// </summary> /// <p 阅读全文
posted @ 2020-04-13 17:43 LuoCore 阅读(692) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页