2008-05-23 13:52
using System;
using System.Collections.Generic;
using System.Text;
namespace DesignPattern
{
public class Prototype
{
public string field1;
public int field2;
public string[] field3;
public int[] field4;
|
2008-05-23 13:51
using System;
using System.Collections.Generic;
using System.Text;
namespace DesignPattern
{
public class Car
{
public virtual void testmethod()
{
Console.WriteLine("This is a Car.");
}
|
2008-05-21 17:58
using System;
using System.Collections.Generic;
using System.Text;
namespace DesignPattern
{
/// <summary>
/// 工人们都会几样手艺,但对相同的工作可能做法不一样
/// </summary>
interface IBuilder
{
void buildA();
void buildB();
|
2008-05-21 17:57
using System;
using System.Collections.Generic;
using System.Text;
namespace DesignPattern
{
public class SingletonPattern
{
private static SingletonPattern _singletonpattern;
/// <summary>
/// protect the constructor so that instance can't be create outside by keyword n |
2008-05-20 13:33
经常在QQ消息中收到各种故事,需要接收者传递给其他的人。特别是在特殊节日或者有特殊事件发生以后。
比如某某地方将要再次发生地震啊,赶快传递给其他人啊
比如母亲节要到了,为母亲送上祝福,并要求传递给其他人,否则受诅咒拉
再比如某某感人的故事已经围绕地球转了几圈才到这里啊,传递给其他人就能得到什么什么拉
。。。
各种损招都有,目的就一个:希望消息传递出去。
仔细分析一下,这些消息传递出去以后,对始发者有什么好处吗?或者仅仅是个游戏?或者为了传播谣言?
后综合分析,这 |
|
|