随笔分类 - .NET
C# Framework
摘要:静态成员的动态封装类 dynamic dynamic = new StaticMemberDynamicWrapper(typeof(string)); // 动态调用静态方法 var r = dynamic.Concat("A", "B"); Console.WriteLine(r); if (r
阅读全文
摘要:标识位 byte BitArray
阅读全文
摘要:roslyn编译器,放到bin里面去是为了支持asp.net应用的动态编译。如果不需要,可以通过nuget包删除下面两个包 Microsoft.CodeDom.Providers.DotNetCompilerPlatform Microsoft.Net.Compilers
阅读全文
摘要:CancellationToken Register
阅读全文
摘要:a.MyActionEvent += this.A_MyActionEvent; 类A的变量a作为发布者,拥有事件MyActionEvent,订阅B的方法A_MyActionEvent,变量b就会注入到a里。 如果订阅者b的生命周期短于发布者a的,必须注意取消订阅事件处理程序A_MyActionEv
阅读全文
摘要:mscoree, MarshalByRefObject
阅读全文
摘要:Enumerable、Queryable、List
阅读全文
摘要:Load、LoadFile、LoadFrom
阅读全文

浙公网安备 33010602011771号