随笔分类 -  C#

上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要:https://www.cnblogs.com/jizhongfong/p/4384689.html var bind = new Binding("Enabled", OrderViewModel.Instance.Commands.ThreadManager, "IsRunning"); bin 阅读全文
posted @ 2021-06-25 13:42 LuoCore 阅读(1541) 评论(0) 推荐(0)
摘要:http://www.bubuko.com/infodetail-1923328.html 需要将 &#x 替换成 \u 最终是\ue603 //使用方法protected override void OnShown(EventArgs e) { base.OnShown(e); ImageFont 阅读全文
posted @ 2021-06-23 15:10 LuoCore 阅读(1125) 评论(0) 推荐(0)
摘要:/// <summary> /// 自定义绑定列表类 /// </summary> /// <typeparam name="T">列表对象类型</typeparam> public class BindingCollection<T> : BindingList<T> { private bool 阅读全文
posted @ 2021-06-19 11:51 LuoCore 阅读(297) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/wangjunwei/p/4523739.html sqlObj.Value.Select(x => string.Format("'{0}'='{1}'", x.ParameterName,x.Value)).ToList(); string.Joi 阅读全文
posted @ 2021-06-16 12:57 LuoCore 阅读(262) 评论(0) 推荐(0)
摘要:/// <summary> /// 文件是否被占用 /// </summary> /// <param name="fileName"></param> /// <returns></returns> public static bool IsFileInUse(string fileName) { 阅读全文
posted @ 2021-06-11 11:48 LuoCore 阅读(699) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/weixin_30919571/article/details/102321538 有个处理方法在引发异常的发放上面加上 [System.Runtime.ExceptionServices.HandleProcessCorruptedStateExcept 阅读全文
posted @ 2021-06-11 10:46 LuoCore 阅读(884) 评论(0) 推荐(0)
摘要:/// <summary> /// 将绑定数据源和控件绑定 /// </summary> /// <param name="ctl">控件</param> /// <param name="propertyName">属性名称</param> /// <param name="BindingSour 阅读全文
posted @ 2021-06-10 14:20 LuoCore 阅读(773) 评论(0) 推荐(0)
摘要:An unhandled exception occurred while processing the request. InvalidOperationException: No authenticationScheme was specified, and there was no Defau 阅读全文
posted @ 2021-05-19 13:45 LuoCore 阅读(1177) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/weixin_30566111/article/details/99483605 var html = "<select id=\"formBasicEmail\" class=\"form - control\"><option>73: Australi 阅读全文
posted @ 2021-05-18 15:03 LuoCore 阅读(239) 评论(0) 推荐(0)
摘要:Type enumType = typeof(Domain.Models.Entitys.PermissionEntity.PermissionTypeEnum); Array values = Enum.GetValues(enumType); if (values.Length > 0) { f 阅读全文
posted @ 2021-05-12 10:07 LuoCore 阅读(445) 评论(0) 推荐(0)
摘要:/// <summary> /// 生成设置范围内的Double的随机数 /// eg:_random.NextDouble(1.5, 2.5) /// </summary> /// <param name="random">Random</param> /// <param name="miniD 阅读全文
posted @ 2021-05-11 15:48 LuoCore 阅读(1530) 评论(0) 推荐(0)
摘要:private static Dictionary<string, string> ParseToDictionary(string str) { Dictionary<string, string> result = new Dictionary<string, string>(); var pa 阅读全文
posted @ 2021-05-08 10:38 LuoCore 阅读(910) 评论(0) 推荐(0)
摘要:string respDataJson = "A=&B=2&C=asdfasdf"; string respDataJson = "A=&B=2&C=asdfasdf"; var dddddd= StringToObject<ResponseModel>(respDataJson); public 阅读全文
posted @ 2021-05-08 10:36 LuoCore 阅读(337) 评论(0) 推荐(1)
摘要:https://www.cnblogs.com/tianma3798/p/8807906.html 感谢这位大哥的代码提示 微软官网的这个示例正的是该换了,一点用处没看出来 https://docs.microsoft.com/zh-cn/dotnet/api/system.security.cry 阅读全文
posted @ 2021-05-05 18:08 LuoCore 阅读(1618) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="utf-8"?> <qrylist><order orderid="1234567890"></order> <order orderid="1234567891"></order> <order orderid="1234567892"> 阅读全文
posted @ 2021-05-05 15:06 LuoCore 阅读(265) 评论(0) 推荐(1)
摘要:https://www.cnblogs.com/Sheldon180621/p/14498646.html 方法一、引用*.wsdl文件 WebService服务端会提供wsdl文件,客户端通过该文件生成.cs文件以及生成.dll PS:注意若是服务端只提供了URL,那可以通过在URL后面加上“?w 阅读全文
posted @ 2021-05-04 11:30 LuoCore 阅读(3851) 评论(0) 推荐(1)
摘要:public static int ConvertDateTimeToInt(System.DateTime time) { System.DateTime startTime = System.TimeZone.CurrentTimeZone.ToLocalTime(new System.Date 阅读全文
posted @ 2021-04-29 13:41 LuoCore 阅读(188) 评论(0) 推荐(0)
摘要:public class LoggingHelper { /// <summary> /// 获取文件路径 /// </summary> /// <returns></returns> public static string GetLogFilePath() { string log_file_p 阅读全文
posted @ 2021-04-21 13:26 LuoCore 阅读(292) 评论(0) 推荐(0)
摘要:/// <summary> /// 对象转Get请求参数 /// </summary> /// <returns></returns> public static string ObjectToGetParam(this object obj) { StringBuilder strBui = ne 阅读全文
posted @ 2021-04-15 14:49 LuoCore 阅读(400) 评论(0) 推荐(0)
摘要:实操 <Info xmlns=""> <Error>User 錯誤</Error> </Info> public class ResponseModel { public class InfoModel { public string Error { get; set; } } public Inf 阅读全文
posted @ 2021-03-09 14:28 LuoCore 阅读(665) 评论(0) 推荐(0)

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