2006年6月7日
摘要:
url:同一资源定位符uri:同一资源标志符 url定位客户端连接到服务器所需要的信息,如http://www.csdn.nethttp://tcc.com:8080/servlet/logon?name=zhangsan&addr=tttt完整构成://[:port]/[?query-string] uri是url的一部分,没有域名和查询字符串,即域名之后查询字符串之前所有的信息,用于制定资源。...
阅读全文
posted @ 2006-06-07 21:41
冰羽
阅读(204)
推荐(0)
2006年6月6日
摘要:
void ValidatingXMLFile(string xmlFile) { XmlTextReader temp = new XmlTextReader(xmlFile); XmlValidatingReader vReader = new XmlValidatingReader(temp); vReader.V...
阅读全文
posted @ 2006-06-06 23:15
冰羽
阅读(396)
推荐(0)
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Management;public class class1{ public static string GetMacAddress() {...
阅读全文
posted @ 2006-06-06 15:43
冰羽
阅读(186)
推荐(0)
2006年6月5日
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//'加密函数 private String Encrypt(String strText, String strEncrKey) { Byte[] byKey = {}; Byte[] ...
阅读全文
posted @ 2006-06-05 14:36
冰羽
阅读(204)
推荐(0)
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 using System; 2 using System.IO; 3 using System.Runtime.Serialization; 4 using System.Runtime.Seria...
阅读全文
posted @ 2006-06-05 12:43
冰羽
阅读(157)
推荐(0)
2006年6月2日
摘要:
此类是一个计算表达式的类,输入一个表达式,调用后会计算出表达式的值。 using System;using System.CodeDom.Compiler;using System.Reflection;using System.Text;using Microsoft.CSharp;namespace CSharp{ /**//// /// 模块名称:计算表达式的类 /// public c...
阅读全文
posted @ 2006-06-02 10:25
冰羽
阅读(229)
推荐(0)
2006年5月17日
摘要:
最近接到一个项目,其中的一个业务大概是这样的:A 包含 B 和 C,这是一种层次关系,但是用户要自己定义自己的层次关系,也就是说用户可能定义成A包含 D 和 B。 本来这种层次关系很符合 合成模式的环境,但是合成模式的在修改这种关系的时就要修改大量的代码,根据Ioc的思想,我们可以在一个factory里面封装这样的层次关系。这样做虽然使得变化集中在这个factory里面,但是用户自定...
阅读全文
posted @ 2006-05-17 23:53
冰羽
阅读(500)
推荐(0)