2002pine
码龄20年
  • 40,803
    被访问
  • 32
    原创
  • 1,528,922
    排名
  • 1
    粉丝
  • 0
    铁粉
关注
提问 私信
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:广东省
  • 加入CSDN时间: 2002-10-10
博客简介:

2002pine的专栏

查看详细资料
  • 0
    领奖
    总分 0 当月 0
个人成就
  • 获得0次点赞
  • 内容获得2次评论
  • 获得0次收藏
创作历程
  • 32篇
    2004年
成就勋章
  • 最近
  • 文章
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

客户端调用webservice

//注意在1.1的machine.config,默认webservice去除了post,get方法machine.config中找到把去掉的加上 1,webservice[WebMethod]  public string GetMessage()  {   XmlDocument doc=new XmlDocument();   doc.Load(Server.MapPa
原创
发布博客 2004.10.12 ·
1195 阅读 ·
0 点赞 ·
0 评论

Design Pattern 18-state

using System;namespace Pattern{ ///  /// Summary description for Class1. ///    /*public class StateManager {  private myState state=null;  public void Execute()  {   //执行状态            DoThing d
原创
发布博客 2004.09.29 ·
1051 阅读 ·
0 点赞 ·
0 评论

Design Pattern 17-Mediator

using System;using System.Collections ;namespace Pattern{ ///  /// Summary description for Class1. ///  /*这个模式的定义就很简单用一个中介对象来封装一系列的对象交互。中介者 使各对象不需要显式地相互引用,从而使其耦合松散,而且可以独立地改变 它们之间的交互。好处是什么呢?很显然就是
原创
发布博客 2004.09.29 ·
897 阅读 ·
0 点赞 ·
0 评论

Design Pattern 16-Facade

using System;namespace Pattern{ ///  /// Summary description for Class1. ///  /* 假设你有三个播音设备.分别使CD 磁带机,Mp3 它们分别有自己独立的操作放案.这让你很头痛 因为你必须掌握三套类似却有相对独立的方案.那么我们考虑如何解决*/ public class CDPlay {  private
原创
发布博客 2004.09.29 ·
849 阅读 ·
0 点赞 ·
0 评论

Design Pattern 15-visitor

/*Visitor访问者模式定义作用于某个对象群中各个对象的操作. 它可以使你在不改变这些对象本身的情况下,定义作用于这些对象的新操作.在Java中,Visitor模式实际上是分离了collection结构中的元素和对这些元素进行操作的行为.为何使用Visitor?Java的Collection(包括Vector和Hashtable)是我们最经常使用的技术,可是Collection好象是个
原创
发布博客 2004.09.29 ·
967 阅读 ·
0 点赞 ·
0 评论

Design Pattern 14-bridge

/* * 将抽象和行为划分开来,各自独立,但能动态的结合。 *  * 例如,一杯咖啡为例,子类实现类为四个:中杯加奶、大杯加奶、 中杯不加奶、大杯不加奶。但是,我们注意到:上面四个子类中有概念重叠,可从另外一个角度进行考虑,这四个类实际是两个角色的组合:抽象 和行为,其中抽象为:中杯和大杯;行为为:加奶 不加奶(如加橙汁 加苹果汁). 实现四个子类在抽象和行为之间发生了固定的绑定关系,如果
原创
发布博客 2004.09.29 ·
917 阅读 ·
0 点赞 ·
0 评论

Design Pattern 13-Decorator

/* * 动态给一个对象添加一些额外的职责,就象在墙上刷油漆.使用Decorator模式相比用生成子类方式达到功能的扩充显得更为灵活.为什么使用Decorator?我们通常可以使用继承来实现功能的拓展,如果这些需要拓展的功能的种类很繁多,那么势必生成很多子类,增加系统的复杂性,同时,使用继承实现功能拓展,我们必须可预见这些拓展功能,这些功能是编译时就确定了,是静态的. */using Sy
原创
发布博客 2004.09.29 ·
942 阅读 ·
0 点赞 ·
0 评论

Design Pattern 12-Command

using System;using System.Collections ;namespace Pattern{ public interface Command {  void execute();   void undo(); } //其中execute用来执行命令,undo用来恢复(undo). //接下来实现这个接口,先来实现Cut命令: public class CutComm
原创
发布博客 2004.09.29 ·
920 阅读 ·
0 点赞 ·
0 评论

Design Pattern 11-Adapter

using System;namespace Pattern{ ///  /// Summary description for Class1. ///  public class adapter:Circle,draw {  public adapter()  {   //   // TODO: Add constructor logic here   //  }  public void
原创
发布博客 2004.09.29 ·
897 阅读 ·
0 点赞 ·
0 评论

Design Pattern 10-template

using System;namespace Pattern{ ///  /// Summary description for Class1. ///  public abstract class template {  public template()  {   //   // TODO: Add constructor logic here   //  }  public abstra
原创
发布博客 2004.09.25 ·
961 阅读 ·
0 点赞 ·
0 评论

Design Pattern 9-strategy

using System;namespace Pattern{ ///  /// Summary description for Class1. ///  public abstract class strategy {  protected string m_oldstr="";  protected string m_newstr="";  public void setOldString
原创
发布博客 2004.09.25 ·
1401 阅读 ·
0 点赞 ·
0 评论

Design Pattern 8-singleton

using System;namespace Pattern{ ///  /// Summary description for Class1. ///  public class singleton {  private static singleton son;  private singleton()  {   //   // TODO: Add constructor logic he
原创
发布博客 2004.09.25 ·
914 阅读 ·
0 点赞 ·
0 评论

Design Pattern 7-proxy

using System;namespace Pattern{ public abstract class subject {  public abstract void request(); } ///  /// Summary description for Class1. ///  public class proxy:subject {  public proxy()  {   // 
原创
发布博客 2004.09.25 ·
910 阅读 ·
0 点赞 ·
0 评论

Design Pattern 6-observer

using System;namespace Pattern{ ///  /// Summary description for Class1. ///  public class observer {  public observer()  {   //   // TODO: Add constructor logic here   //  }  internal void update(s
原创
发布博客 2004.09.25 ·
836 阅读 ·
0 点赞 ·
0 评论

Design Pattern 5-Memento

using System;namespace Pattern{ ///  /// Summary description for Class1. ///  public class memento {  public int number;     public string file = "";  public memento(Originator m)  {    number = m.n
原创
发布博客 2004.09.25 ·
850 阅读 ·
0 点赞 ·
0 评论

Design Pattern 4-flyweight

using System;namespace Pattern{ ///  /// Summary description for Class1. ///  public interface flyweight {  void act(); } public class Concerateflyweight:flyweight {  public Concerateflyweight()  { 
原创
发布博客 2004.09.25 ·
780 阅读 ·
0 点赞 ·
0 评论

Design Pattern 3-Composite

using System;namespace Pattern { ///  /// Summary description for Class1. ///  public class CompositeEquipment:Equipment {  System.Collections.ArrayList list=new System.Collections.ArrayList();  pub
原创
发布博客 2004.09.25 ·
737 阅读 ·
0 点赞 ·
0 评论

Design Pattern 2-Factory

using System;namespace Pattern{ ///  /// Summary description for Class1. ///  public class Factory {  public Factory()  {     }  public static Fruit made(int flag)  {   if (flag==1) return new apple
原创
发布博客 2004.09.25 ·
767 阅读 ·
0 点赞 ·
0 评论

Design Pattern 1-builder

using System;namespace Pattern{ ///  /// Summary description for Class1. ///  public interface builder {  void buildPartA();  void buildPartB();  product getProduct(); } public class product {  publ
原创
发布博客 2004.09.25 ·
891 阅读 ·
0 点赞 ·
1 评论

smart search(转)

(eg. ShanDong)var msg = new Array("Beijing","Tianjing","Shanghai","Guangdong","ShanDong","Shanxi","Hunan","Hubei");var msg2=new Array("北京","天津","上海","广东","山东","陕西","湖南","湖北");function showti
原创
发布博客 2004.09.24 ·
1070 阅读 ·
0 点赞 ·
0 评论
加载更多