随笔分类 - c#
摘要:dynamic data = new System.Dynamic.ExpandoObject(); IDictionary dictionary = (IDictionary)data; dictionary.Add("FirstName", "Bob"); dict...
        阅读全文
            
摘要:子窗体 public event Action> myEvent; myEvent(List); 子窗体调用 父窗体 创建对象 frm.myEvent += Set物料; private void Set物料(List list)() { }
        阅读全文
            
摘要://定义委托 ; 参数为方法名称 public delegate void UpdateLabel(string label); //control.invoke(参数delegate)方法:在拥有此控件的基础窗口句柄的线程上执行指定的委托。 //timeElapsedInstring 是UpdateUI方法的参数。 //lbl...
        阅读全文
            
摘要:Hashtable ht = new Hashtable(); ht["标题"] = 10; ht["B"] = ht["标题"]; ht.Remove("标题");
        阅读全文
            
摘要: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
        阅读全文
            
摘要:PageCount = personInfodb.get_count(selected_id); //数据总数 PageCount = (int)Math.Ceiling(PageCount / (PageSize * 1.0)); //总数据数/每页分的数据数 /// <summary> /// 
        阅读全文
            
摘要:A a = new A(); var t = a?.ToString(); //t = WebApplication1.Controllers.A //获得命名空间和类名 var t1 = (A)null; var t = t1?.ToString(); // //t = null; pdfView
        阅读全文
            
摘要:注册后报错 详细 自定义ActionResult https://blog.csdn.net/u014690615/article/details/85999853
        阅读全文
            
摘要:public static string GetPostParams(HttpContext context) { string param = string.Empty; if (context.Request.Method.ToLower().Equals("post")) { ...
        阅读全文
            
摘要:需要新建error控制器 //输入错误的URL路径, 将请求到 Error404()方法
        阅读全文
            
摘要:public class cehsimodelManager : DbContext<cehsimodel> {} //类 public class cehsimodel { public string btnname { get; set; } public string btnid { get;
        阅读全文
            
摘要://倒叙排列 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; }
        阅读全文
            
摘要:public class A { public A() { } public A(string str) { } }
        阅读全文
            
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; u
        阅读全文
            
摘要: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...
        阅读全文
            
摘要: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...
        阅读全文
            
 
                    
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号