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

浙公网安备 33010602011771号