05 2022 档案
摘要:第一种 用List<>配合for/foreach循环 第二种 1 public static DataTable TDistinct(DataTable dt, string[] filedNames) 2 { 3 DataView dv = dt.DefaultView; 4 DataTable
阅读全文
摘要:1.下载nuget.exe 放入项目文件夹 2.cmd 到项目路径执行命令 命令 描述 nuget spec 生成 项目名.nuspec 说明文件 (可选) nuget pack -version 1.1.0 生成nupkg包,-version 版本号 3.到nuget.org网站登录上传
阅读全文
摘要:1 public void OnGet() 2 { 3 string str = Request.Query["key1"]; 4 } 5 public void OnPost() 6 { 7 string str = Request.Form["key2"]; 8 }
阅读全文
摘要:新建类 1 namespace webc.Utils 2 { 3 public class AppHelper 4 { 5 private static IConfiguration? _config; 6 7 public AppHelper(IConfiguration configuratio
阅读全文