草叶睡蜢

导航

2021年11月15日 #

C#特性知识图谱-七、Lambda表达式

摘要: 第七章 Lambda表达式 1、匿名方法 2、Lambda表达式 2.1.1 两种基本格式 3、总结 Lambda表达式其实就是匿名方法的进一步简化,可以用于定义一个匿名函数,并将其传给一个委托变量。 Lambda表达式可以简化委托的编码量,使代码显得更优雅简洁。 阅读全文

posted @ 2021-11-15 20:32 草叶睡蜢 阅读(41) 评论(0) 推荐(0) 编辑

2021年11月6日 #

英语词组/短语-20211020

摘要: take a nap 小憩一会 oversee the construction progress 监督施工进度 a great consumption 一笔很大的开销 basic and limited editions 基本款和限量款 private property 私人财产/住宅 cowbo 阅读全文

posted @ 2021-11-06 08:35 草叶睡蜢 阅读(30) 评论(0) 推荐(0) 编辑

2021年11月5日 #

英语词组/短语-20211019

摘要: step aside 靠边 self-checkout machine 自动结账机 catch a cold 感冒 sore throat 喉咙痛 a vase from the tang dynasty 唐代的花瓶 sit by the lake in a peaceful way 静静的坐在湖边 阅读全文

posted @ 2021-11-05 09:36 草叶睡蜢 阅读(110) 评论(0) 推荐(0) 编辑

2021年11月4日 #

英语词组/短语-20211014

摘要: the audience broke into enthusiastic applause for the three boys 观众对这三个男孩报以热烈的掌声 solar system 太阳系 dormitory 宿舍 this TV program is sponsored by a numbe 阅读全文

posted @ 2021-11-04 09:39 草叶睡蜢 阅读(52) 评论(0) 推荐(0) 编辑

2021年11月3日 #

英语词组/短语-20211013

摘要: build an extension to our house 扩建我们的房子 have pain in his shoulder 他的肩膀痛 his purpose of exercising (练习/训练)的(目标/目的) at a reasonable price 在一个合理的价格 a hal 阅读全文

posted @ 2021-11-03 08:40 草叶睡蜢 阅读(57) 评论(0) 推荐(0) 编辑

2021年11月2日 #

英语词组/短语-20211011

摘要: a thank-you note 一张感谢卡片 I can give you my consent 我赞成你的想法 driveway 车道 a democratic society 一个民主的国家 let me check if your blood pressure is normal 让我检测一 阅读全文

posted @ 2021-11-02 13:49 草叶睡蜢 阅读(104) 评论(0) 推荐(0) 编辑

2021年11月1日 #

英语词组/短语-20211007

摘要: suffer discrimination 遭到歧视 be made of 由...制造的 fail to do sth. 没有做到什么事/做某事失败了 gain knowledge through reading books 通过读书获取知识 marital life 婚姻生活 the conti 阅读全文

posted @ 2021-11-01 16:13 草叶睡蜢 阅读(27) 评论(0) 推荐(0) 编辑

Command 命令模式

摘要: Command 命令模式 命令模式吧一个对象向另一个对象发送的命令封装为一个抽象的Command类,具体的命令为它的子类,命令接受者(Receiver)负责响应发送者发出的命令(即执行其Execute方法)。 Command模式将调用操作的对象与执行操作的对象解耦。 支持多种命令。 命令可以打包组合 阅读全文

posted @ 2021-11-01 15:16 草叶睡蜢 阅读(165) 评论(0) 推荐(0) 编辑

2021年10月30日 #

Composite 组合模式

摘要: Composite 组合模式 适用场景 现实生活中有很多事物之间的关系是整体与部分的关系,整体与部分之间既有共性又有个性,当我们需要有意地忽略整体与部分的不同处,只关注他们的共性,并且基于这种共性完成某种工作时,可以运用Composite组合模式。 示例 通过最顶层Computer的Price属性计 阅读全文

posted @ 2021-10-30 16:10 草叶睡蜢 阅读(38) 评论(0) 推荐(0) 编辑

Decorator 装饰器模式

摘要: Decorator 装饰器模式 适用场景 在不锈钢其原始代码的基础上动态的给一个对象添加新特性。 在实际开发过程中通常是通过对象注入的方式运用Decorator模式。 示例 MyClass对象通过组合InnerClass对象,既可以向外界提供InnerClass原有的功能,又能通过添加新方法提供扩充 阅读全文

posted @ 2021-10-30 15:50 草叶睡蜢 阅读(27) 评论(0) 推荐(0) 编辑