随笔分类 -  My SourceForge

Hashtable的遍历[转]
摘要:IDictionaryEnumerator enumerator = thProduct.GetEnumerator(); while (enumerator.MoveNext()) { arrKey.Add("@"+enumerator.Key.ToString()); // Hashtable关健字 arrValue.Add(enumerator.Valu... 阅读全文
posted @ 2007-04-08 06:46 冰羽 阅读(128) 评论(0) 推荐(0)
custom type in Xml Schema
摘要:... 阅读全文
posted @ 2007-01-01 12:24 冰羽 阅读(146) 评论(0) 推荐(0)
Custom ConfigurationSection
摘要:public class PaymentSection:ConfigurationSection { constant parameters#region constant parameters const string VALUE = "value"; #endregion properties#region properties ... 阅读全文
posted @ 2006-10-27 20:28 冰羽 阅读(234) 评论(0) 推荐(0)
Namesapce with xpath query
摘要:public XmlNode Query(string queryRestriction) { XmlNamespaceManager nameSpaceManager = new XmlNamespaceManager(this._doc.NameTable); nameSpaceManager.AddNamespace(... 阅读全文
posted @ 2006-10-27 20:27 冰羽 阅读(173) 评论(0) 推荐(0)
Validation with XmlReader (XmlReaderSettings)
摘要:/**//// /// Creats the instance of xml document /// /// instance of the xml document public static XmlDocument GetXmlDocument() { PaymentSection ps = (... 阅读全文
posted @ 2006-10-27 20:12 冰羽 阅读(285) 评论(0) 推荐(0)
Accessing Excle file using OLEDB
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public object ImportDateCreate() { // TODO: 添加 DJPlanExpImpFactory.Import 实现 ... 阅读全文
posted @ 2006-08-24 11:56 冰羽 阅读(234) 评论(0) 推荐(0)
xml文档的有效性验证
摘要:void ValidatingXMLFile(string xmlFile) { XmlTextReader temp = new XmlTextReader(xmlFile); XmlValidatingReader vReader = new XmlValidatingReader(temp); vReader.V... 阅读全文
posted @ 2006-06-06 23:15 冰羽 阅读(396) 评论(0) 推荐(0)
获取MAC地址
摘要: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) 推荐(0)
加密解密
摘要: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) 推荐(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) 推荐(0)
一个计算表达式的类
摘要:此类是一个计算表达式的类,输入一个表达式,调用后会计算出表达式的值。 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) 评论(1) 推荐(0)