![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 53
ShanShanYouWen
这个作者很懒,什么都没留下…
展开
-
dotnet Nuget 发布自定义dll
路径定位到生成 .nupkg文件下,输入指令 dotnet nuget push PackageId.version.nupkg --api-key nuget_apikey --source https://api.nuget.org/v3/index.json。包ID(创建Nuget apikey 需要用到)使用框架版本号版本号原创 2023-09-18 12:39:08 · 215 阅读 · 0 评论 -
Asp.net Core3.1 Cookie认证 简单使用
Asp.net core3.1 cookie 认证初体验原创 2022-11-02 16:35:40 · 553 阅读 · 0 评论 -
C# 钩子函数使用
C# 钩子函数的使用原创 2022-10-18 15:38:49 · 1089 阅读 · 0 评论 -
Asp.Net Core3.1 Swagger简单使用
.NetCore3.1 中如何配置使用swagger工具显示API原创 2022-10-09 16:07:14 · 504 阅读 · 0 评论 -
C# restsharp调用webapi接口,接口接收json多了很多转义符
用restsharp方式调用webapi,post json 数据到接口上,出现很多转义符,目前只能在json串做处理,暂时未找到方法。接收到json串,对json串进行处理。原创 2022-09-09 15:00:17 · 1022 阅读 · 0 评论 -
C# ?、?.、? ? 、? : 使用
1. ? 空类型修饰,在声明类型后面加? 声明的变量可以使用空引用,例如: int? a=1; // a=null2. NULL 空检查运算符?.,可以检查?前面的变量是否为null,若不为null则继续执行后面代码 public class Dog { public string Name { get; set; } public Dog() { } } var name = dog?.Name;3. 空..原创 2022-04-19 14:58:59 · 110 阅读 · 0 评论 -
C# OfType使用
1、源码: public static IEnumerable<TResult> OfType<TResult>(this IEnumerable source) { if (source == null) throw Error.ArgumentNull("source"); return OfTypeIterator<TResult>(source); } static IEnu原创 2022-04-02 14:33:51 · 837 阅读 · 0 评论 -
C# DataTable 转实体集合
public static class DataTableExtendMethod { /// <summary> /// DataTable 转实体集合 /// </summary> /// <typeparam name="T">实体类</typeparam> /// <param name="dt"></param> /// ...原创 2022-03-31 16:49:53 · 404 阅读 · 0 评论