软件工程
文章平均质量分 63
leeeyupeng
驰骋沙场,万马行空。
展开
-
观察者模式
using System;using System.Collections;using System.Collections.Generic;namespace Observer{ public interface IObserver { void Update(Object obj); } public interface IObserv原创 2012-08-02 14:22:08 · 476 阅读 · 0 评论 -
singleton pattern C# 继承式 模板
//继承式 public abstract class Singleton where T : new() { private static T m_instance; static object m_lock = new object(); public static T Instance {原创 2013-05-17 11:46:50 · 1784 阅读 · 0 评论