
C#
fangyuan303687320
Silverlight 游戏开发是下一个目标
展开
-
Hashtable 类
Hashtable 类C#中HashTable的用法,哈希表(Hashtable)简述在.NET Framework中,Hashtable是System.Collections命名空间提供的一个容器,用于处理和表现类似keyvalue的键值对,其中key通常可用来快速查找,同时key是区分大小写;value用于存储对应于key的值。Hashtable中keyvalue键值对均为object类型转载 2009-09-08 10:45:00 · 793 阅读 · 0 评论 -
C# XML 操作(以前写的加现在收集的,备以后忘了,还找以前的代码库)
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using原创 2010-01-15 22:20:00 · 2482 阅读 · 0 评论 -
设计模式-原型设计模式(Prototype)
设计模式-原型设计模式(Prototype)2007年04月12日 星期四 20:50分类:创建型模式一、应用场景在一个特定的场景中经常需要出现多个相同但状态各异的对象,通常的解决方法是通过new创建这些对象之后分别去设置这些对象的状态。原型设计模式提供了更快捷、更有效的解决方法。二、意图通过复制(克隆、拷贝)一个指定类型的对象来创建更多同类型的对象。这转载 2009-12-14 01:55:00 · 1536 阅读 · 0 评论 -
http://www.zu14.cn/2009/01/24/regex-image-width-height/
在HTML代码中,img的写法大致如下:img src=”…” alt=”…” width=”…” height=”…” />我们利用正则表达式来提取 width 和 height 的值:string str = "";string pattern = "width//s?=//s?/"(//d+)/"//s+height//s?=//s?/"(//d+)";Sys转载 2009-12-15 16:20:00 · 1878 阅读 · 0 评论 -
C#中的预定义事件处理机制
Click; 这里定义了一个EventHandler类型的事件Click 前面的内容都是C#在类库中已经为我们定义好了的。下面我们来看编程时产生的代码。 private void button1_Click(object sender, System.EventArgs e) { ... }转载 2010-01-02 20:15:00 · 2615 阅读 · 0 评论 -
委托与事件代码详解
委托与事件代码详解using System;using System.Collections.Generic;using System.Text;namespace @Delegate //自定义命名空间,新建控制台程序,命名后自动添加{ // 热水器 public class Heater { private int temperature;转载 2010-01-02 20:23:00 · 1666 阅读 · 0 评论 -
C# 操作IIS
using System; using System.DirectoryServices; using System.Collections; using System.Text.RegularExpressions; using System.Text; /** *转载 2011-08-19 09:20:57 · 1779 阅读 · 0 评论