OfficeOpenXml
OfficeOpenXml Excel操作库 打开 CS // 打开文件 using ExcelPackage package = new(new FileInfo("path/to/file")); // 打开工作表 ExcelWorksheet …
OfficeOpenXml Excel操作库 打开 CS // 打开文件 using ExcelPackage package = new(new FileInfo("path/to/file")); // 打开工作表 ExcelWorksheet …
使用命名空间 CS using Microsoft.Data.Sqlite; using Microsoft.Data.Sqlite; 创建连接 CS SqliteConnection dbc = new("Data Source=:memory:"); // 内 …
Type CS // typeof Type type = typeof(MyClass); // GetType MyClass obj = new MyClass(); Type type = obj.GetType(); // typeof Type type = …
Convert CS object result = Convert.ChangeType(object 值, Type 目标类型); object result = Convert.ChangeType(object 值, Type 目标类型); String转对应Enum …
C# ⏬ 委托ActionFunction
C# ⏬ async函数的Task返回值 TaskWhenAll CS TaskCompletionSource CS // TaskCompletionSource<T> tcs = new(); // tcs.SetResult(T); // tcs.Task; …