摘要:
using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Ink;using System.Windows.Input;using System.Windows.Media;using Sys... 阅读全文
摘要:
using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Ink;using System.Windows.Input;using System.Windows.Media;using Sys... 阅读全文
摘要:
using System;using System.Linq;using System.Web;using System.Collections.Generic;namespace SVL{ [Serializable] public class TableForGen { public string TableName; public ColumnInfo[] Columns; public T... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services;namespace WebService1{ /// <summary> /// Service1 的摘要说明 /// </summary> [WebServic... 阅读全文
摘要:
状态模式using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace State{ public interface State { //投入25分硬币 void insertQuarter(); //退出硬币 void ejectQuarter(); //推把手 void t... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Strategy{ /// summary /// 具有飞行行为 /// /summary public interface FlyBehavior { void fly(); } /// summary /// 具有吃饭行为 /// /summary public interface EatBehavior { void eat(); } /// summary /// 用翅膀飞 /// 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SingleTon{ public sealed class SingleObject { //公有字段 public string name; //类似java的实现 private static object s... 阅读全文
摘要:
观察者,被观察实时数据推送给观察者using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Observer{ interface Subject { void register(Observer o); void remove(Observer o); void notify(); } interface Observer { void update(float temp); } interface Dispaly { void display(); }}using 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace Iterator{ public class Item { string name; double price; public Item(string n, double p) { this.name = n; this.price = p; } public string getName() { return name; } public double get 阅读全文
摘要:
饮料的包装using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Decorator{ //抽象组件类 饮料 public abstract class Beverage { public string description = "未知描述"; public Size size; public abstract Size getsize(); public abstract string getDescription(); public abstract doubl 阅读全文