上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 76 下一页
摘要: static void TestCallerMemberName() { CallerDemo("CallFilePath,CallerMemberName,CallerLineNumber"); } static void CallerDemo(string msg,[CallerFilePath 阅读全文
posted @ 2021-03-04 14:56 FredGrit 阅读(32) 评论(0) 推荐(0) 编辑
摘要: static void PropertyPatternDemo() { string url = "https://devblogs.microsoft.com/dotnet/do-more-with-patterns-in-c-8-0/"; bool result = ShouldAllow(ne 阅读全文
posted @ 2021-03-03 11:27 FredGrit 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 1.install-package System.Text.Json 2. static void SystemTextJsonJsonSerializerDemo() { var obj = new { Id = 1, Name = "Fred", Age = 34 }; string jsonV 阅读全文
posted @ 2021-03-03 09:14 FredGrit 阅读(58) 评论(0) 推荐(0) 编辑
摘要: The new feature is only available in C# 8 or greater,so add below statement in csproj file <LangVersion>8</LangVersion> <PropertyGroup> <Configuration 阅读全文
posted @ 2021-03-02 15:23 FredGrit 阅读(81) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.IO; using System.Security.Cryptography; using System.Security.Principal; using System.Tex 阅读全文
posted @ 2021-02-08 10:41 FredGrit 阅读(66) 评论(0) 推荐(0) 编辑
摘要: static void M2ClassDemo() { M2Class m2 = new M2Class(10); m2.PrintTime(); } public class M2Class { static int M2Value=0; static readonly M2Class m2Obj 阅读全文
posted @ 2021-01-28 11:24 FredGrit 阅读(52) 评论(0) 推荐(0) 编辑
摘要: static void TestDictionaryInSensitive() { try { var comparer = StringComparer.OrdinalIgnoreCase; Dictionary<string, string> dic = new Dictionary<strin 阅读全文
posted @ 2021-01-27 11:06 FredGrit 阅读(88) 评论(0) 推荐(0) 编辑
摘要: alter table AdventureWorks2019.sales.SalesOrderDetail add IsValid bit not null constraint IsValid_Default_Constraint Default 1 with values; This will 阅读全文
posted @ 2020-12-03 22:18 FredGrit 阅读(270) 评论(0) 推荐(0) 编辑
摘要: xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:ii="http://schemas.microsoft.com/expression/2010/inte 阅读全文
posted @ 2020-12-02 17:13 FredGrit 阅读(103) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Excel = Microsoft.Office.Int 阅读全文
posted @ 2020-11-30 20:24 FredGrit 阅读(113) 评论(0) 推荐(0) 编辑
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 76 下一页