上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
摘要: 1、要想理解问题,首先了解一下相关的网络协议与网络标准OSI 解释:OSI,即开放式系统互联。 一般都叫OSI参考模型,是ISO组织在1985年研究的网络互联模型。该体系结构标准定义了网络互联的七层框架(物理层、数据链路层、网络层、传输层、会话层、表示层和应用层),即OSI开放系统互连参考模型 1、 阅读全文
posted @ 2020-04-18 09:57 谁说程序猿很猥琐 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 主要用于 监听对象的标记 [AttributeUsage(AttributeTargets.Class)] public class AOPAttribute : ContextAttribute, IContributeObjectSink { // IContributeObjectSink : 阅读全文
posted @ 2020-04-17 23:00 谁说程序猿很猥琐 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 官方解释:AOP(Aspect-Oriented Programming,面向切面的编程),它是可以通过预编译方式和运行期动态代理实现在不修改源代码的情况下给程序动态统一添加功能的一种技术。它是一种新的方法论,它是对传统OOP编程的一种补充。OOP是关注将需求功能划分为不同的并且相对独立,封装良好的 阅读全文
posted @ 2020-04-17 22:53 谁说程序猿很猥琐 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 详细介绍参照:https://www.cnblogs.com/artech/p/net-core-file-provider-02.html using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.Primitives 阅读全文
posted @ 2020-04-16 16:55 谁说程序猿很猥琐 阅读(507) 评论(0) 推荐(1) 编辑
摘要: 声明:本文借鉴蒋金楠先生的博客: https://www.cnblogs.com/lonelyxmas/p/12656993.html 如何动态 的注册Controller,大概思路是 使用 Roslyn解析并编译代码生成dll,利用IActionDescriptorProvider 接口,将生成好 阅读全文
posted @ 2020-04-16 15:08 谁说程序猿很猥琐 阅读(1715) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/fancunwei/p/9851576.html 阅读全文
posted @ 2020-04-12 22:31 谁说程序猿很猥琐 阅读(94) 评论(0) 推荐(0) 编辑
摘要: using System; namespace 原型模式 { class Program { static void Main(string[] args) { // 使用静态构造对象(和单例相似) { System.Diagnostics.Stopwatch stopwatch = new Sys 阅读全文
posted @ 2020-04-12 22:21 谁说程序猿很猥琐 阅读(172) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { /*建造者模式,适合创建复杂对象,与工厂模式的关注点不一样,建造者重点关注,对象过程的创建 * * * */ { // 创建 福特 车 注重每个过程的建造 BuilderFord builder = new BuilderFord( 阅读全文
posted @ 2020-04-12 21:17 谁说程序猿很猥琐 阅读(97) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { Simple simpleOne = new SimpleOne(); simpleOne.ShowName(); Simple simpleTwo = new SimpleTwo(); simpleTwo.ShowName(); 阅读全文
posted @ 2020-04-12 19:33 谁说程序猿很猥琐 阅读(164) 评论(0) 推荐(0) 编辑
摘要: /* * 循环的使用 * * */ // do while int i = 0; do { i++; Console.WriteLine($"{i}"); } while (i < 10); // while while (i < 11) { i++; Console.WriteLine($"{i} 阅读全文
posted @ 2020-04-12 18:31 谁说程序猿很猥琐 阅读(186) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页