日志
weixin_39921003
这个作者很懒,什么都没留下…
展开
-
LinqAndLambda
program.csusing System;namespace LambdaAndLinq{ class Program { static void Main(string[] args) { Lambda.Show_(); //Lambda是什么? 是实例化委托时传入的参数,是一个匿名方...原创 2020-11-25 11:25:30 · 65 阅读 · 0 评论 -
委托事件&事件的标准写法
using Delegate.Event;using System;namespace Delegate{ class Program { static void Main(string[] args) { #region 委托 //委托在IL是一个类,继承自System.Multicast...原创 2020-11-25 11:24:46 · 309 阅读 · 0 评论 -
特性应用:标记&增加额外信息&增加规则
using AttributeStudy.ValidateExtend;using System;namespace AttributeStudy{ class Program { static void Main(string[] args) { #region 特性的定义,创建 { ...原创 2020-11-25 11:23:40 · 50 阅读 · 0 评论 -
泛型缓存&静态字典缓存&约束
using System;using System.Collections.Generic;using System.Text;namespace Wchentest{ /// <summary> /// 字典缓存 /// </summary> public class DictionaryCache { ...原创 2020-11-25 11:23:12 · 171 阅读 · 0 评论 -
特性给对象自动赋值
using System;using System.Collections.Generic;using System.Text;namespace Reflection{ [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] public class RemarkAttribute : ...原创 2020-11-25 11:22:49 · 102 阅读 · 0 评论 -
反射泛型日志
using System;using System.Collections.Generic;using System.Reflection;using Microsoft.Extensions.Configuration;namespace Reflection{ class Program { static void Main(string[] ar...原创 2020-11-25 11:22:03 · 51 阅读 · 0 评论