随笔分类 -  C#设计模式

摘要:--笔记的目标:加深程序设计、开发的一些思想随着个人的程序开发中的磨练逐渐成长,在笔记中日后会继续增加内容。Final,Finaliy,finallze的区别在哪里,使用的场景在哪里可以发挥作用? 先说一下Final类,Final类就不能有子类,方法不能重载,只能使用,变量只能是只读,不能再修改。在... 阅读全文
posted @ 2015-11-14 13:59 blog_yuan 阅读(148) 评论(0) 推荐(0)
摘要:using System.Text; using System.Collections.Generic; using System.Linq; using System; namespace 观察者 { public interface IServer { void Notice( IClient C); } public interface IClien... 阅读全文
posted @ 2012-09-02 12:22 blog_yuan 阅读(234) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleDelegate514{ class Program { static void Main( string[ ] args ) { Person person = new Person( ); message mess = new message( person, "美女即将下凡了" ); message mess1 = new message( person, "不要 阅读全文
posted @ 2012-05-23 18:17 blog_yuan 阅读(191) 评论(0) 推荐(0)