随笔分类 -  c#

上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要:dynamic data = new System.Dynamic.ExpandoObject(); IDictionary dictionary = (IDictionary)data; dictionary.Add("FirstName", "Bob"); dict... 阅读全文
posted @ 2019-10-23 21:33 enych 阅读(2714) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-10-21 10:47 enych 阅读(6715) 评论(0) 推荐(0)
摘要:子窗体 public event Action> myEvent; myEvent(List); 子窗体调用 父窗体 创建对象 frm.myEvent += Set物料; private void Set物料(List list)() { } 阅读全文
posted @ 2019-10-09 17:55 enych 阅读(523) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-10-08 10:19 enych 阅读(239) 评论(0) 推荐(0)
摘要://定义委托 ; 参数为方法名称 public delegate void UpdateLabel(string label); //control.invoke(参数delegate)方法:在拥有此控件的基础窗口句柄的线程上执行指定的委托。 //timeElapsedInstring 是UpdateUI方法的参数。 //lbl... 阅读全文
posted @ 2019-09-27 11:09 enych 阅读(236) 评论(0) 推荐(0)
摘要:Hashtable ht = new Hashtable(); ht["标题"] = 10; ht["B"] = ht["标题"]; ht.Remove("标题"); 阅读全文
posted @ 2019-09-27 08:50 enych 阅读(503) 评论(0) 推荐(0)
摘要:private void test(string[] sortkey_list, string[] list_temp) { //打开excel到dt; string[] strlist = { "4", "2", "3", "1" }; string[] rowws; rowws = new string[] { "AA", "BB", "CC", "DD" }; //第一行加入数组完成; Di 阅读全文
posted @ 2019-09-17 19:37 enych 阅读(730) 评论(0) 推荐(0)
摘要:PageCount = personInfodb.get_count(selected_id); //数据总数 PageCount = (int)Math.Ceiling(PageCount / (PageSize * 1.0)); //总数据数/每页分的数据数 /// <summary> /// 阅读全文
posted @ 2019-09-11 17:10 enych 阅读(1156) 评论(0) 推荐(0)
摘要:A a = new A(); var t = a?.ToString(); //t = WebApplication1.Controllers.A //获得命名空间和类名 var t1 = (A)null; var t = t1?.ToString(); // //t = null; pdfView 阅读全文
posted @ 2019-09-06 08:38 enych 阅读(633) 评论(0) 推荐(0)
摘要:注册后报错 详细 自定义ActionResult https://blog.csdn.net/u014690615/article/details/85999853 阅读全文
posted @ 2019-09-05 21:41 enych 阅读(1121) 评论(0) 推荐(0)
摘要://继承 可以使用父类属性 阅读全文
posted @ 2019-09-04 12:56 enych 阅读(974) 评论(0) 推荐(0)
摘要:public static string GetPostParams(HttpContext context) { string param = string.Empty; if (context.Request.Method.ToLower().Equals("post")) { ... 阅读全文
posted @ 2019-09-04 12:00 enych 阅读(3020) 评论(0) 推荐(0)
摘要:需要新建error控制器 //输入错误的URL路径, 将请求到 Error404()方法 阅读全文
posted @ 2019-09-04 09:35 enych 阅读(1847) 评论(0) 推荐(0)
摘要:public class cehsimodelManager : DbContext<cehsimodel> {} //类 public class cehsimodel { public string btnname { get; set; } public string btnid { get; 阅读全文
posted @ 2019-09-03 15:55 enych 阅读(4207) 评论(0) 推荐(0)
摘要://倒叙排列 string temp=""; for (int i = 0; i < strlist.Length / 2; i++) { temp = strlist[i]; strlist[i] = strlist[strlist.Length-1 - i]; strlist[strlist.Length - 1 - i] = temp; } 阅读全文
posted @ 2019-09-02 21:12 enych 阅读(1844) 评论(0) 推荐(0)
摘要:public class A { public A() { } public A(string str) { } } 阅读全文
posted @ 2019-09-02 16:57 enych 阅读(1328) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; u 阅读全文
posted @ 2019-09-02 16:25 enych 阅读(601) 评论(0) 推荐(0)
摘要:using Microsoft.Win32; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.IO; using System.Ru... 阅读全文
posted @ 2019-06-25 18:00 enych 阅读(7804) 评论(1) 推荐(0)
摘要: 阅读全文
posted @ 2019-06-25 17:58 enych 阅读(5861) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Extr... 阅读全文
posted @ 2019-06-25 17:34 enych 阅读(4626) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 11 下一页