https://www.gravatar.com/avatar/925f106f8657f9f31645440a0a538227?s=240&d=mp

ASP NET CORE Auth

前言首先我们来看一下在ASP.NET时代,Authentication是如何使用的。下面介绍的是System.Web.Security.Fo

C#json

https://docs.microsoft.com/zh-cn/dotnet/standard/serialization/system-text-json-overview?pivots=dotnet-6-0

c#事件

Demo 事件声明完整格式顾客-customer进入餐馆点菜(触发事件),服务员-waiter(收到事件并处理) namespace Exception { class Program { static void Main(string[] args) { Customer customer = new(); Waiter waiter =

C#入门

c#入门打印int a = 1 Console.WriteLine($"a is {a}") 分支和循环ifint a = 5; int b = 3; if (a + b > 10) { Console.WriteLine("The answer is greater than 10"); } else { Console.WriteLine("The answer is not greater than 10"); } forfor (int index = 0; index < 10; index++) { Console.WriteLine($"Hello World! The index