跟小D每日学口语
摘要: using System;using System.Collections;using System.Collections.Generic;namespace BuilderFunc{ public class Product{ List<string> arrList = new List<string>(); // First in First Out (FIFO) Queue Q = new Queue(); // Last in First out (LIFO) Stack S = n... 阅读全文
posted @ 2012-08-22 23:35 Danny Chen 阅读(285) 评论(0) 推荐(0) 编辑
摘要: using System;namespace SingletonFunc{ public class Singleton{ private static object obj = new object(); private static Singleton singleton; public static Singleton CreateSingleton() { if(singleton == null){ lock(obj) { ... 阅读全文
posted @ 2012-08-22 22:15 Danny Chen 阅读(316) 评论(0) 推荐(0) 编辑
摘要: using System;namespace AbstractFactoryFunc{ public abstract class AbstractProductA{ public abstract void ProductAMethod(); } public class ProductA1 : AbstractProductA{ public override void ProductAMethod(){ Console.Write(this.ToString() + " : Method!"); C... 阅读全文
posted @ 2012-08-22 21:18 Danny Chen 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Every Control in C# is full of events like MouseButtonDown and KeyDown, but what happens when you want an object to fire an event that isn't already built in? This snippet tutorial will go through all the code required to create your own events and custom event handlers.As an example, I'm go 阅读全文
posted @ 2012-08-22 10:03 Danny Chen 阅读(385) 评论(0) 推荐(0) 编辑
摘要: using System;namespace NotePadTest{ interface IFactor{ IProduct CreateIProduct(); } interface IProduct{ void showMethod(); } class BaseProduct : IProduct{ public void showMethod(){ Console.Write(this.ToString()); Console.Read(); ... 阅读全文
posted @ 2012-08-22 09:29 Danny Chen 阅读(381) 评论(0) 推荐(0) 编辑
摘要: See alsocopy (command)XCOPYList of DOS commandsrsyncSyncToyRichCopyhobocopy 阅读全文
posted @ 2012-08-22 09:26 Danny Chen 阅读(143) 评论(0) 推荐(0) 编辑