跟小D每日学口语
摘要: This example shows how to dynamically load assembly, how to create object instance, how to invoke method or how to get and set propertyvalue.Create instance from assembly that is in your project ReferencesThe following examples create instances of DateTime class from the System assembly.[C#]// creat 阅读全文
posted @ 2012-04-07 16:34 Danny Chen 阅读(501) 评论(0) 推荐(0) 编辑
摘要: This example shows how to get all culture names in the .NET Framework. Use static methodCultureInfo.Get­Cultures. To get associated specific culture use static methodCultureInfo.Cre­ateSpecificCul­ture.Following code is modified MSDN example (it'sjust sorted by culturename).[C#]// 阅读全文
posted @ 2012-04-07 16:32 Danny Chen 阅读(307) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/4197923/xml-document-set-attribute-question 阅读全文
posted @ 2012-04-07 16:30 Danny Chen 阅读(116) 评论(0) 推荐(0) 编辑
摘要: This example shows how to select nodes from XML documentby attribute value. Use methodXmlNode.Selec­tNodesto get list of nodes selected by the XPath expression. Suppose we have this XMLfile.[XML]<Names> <Name type="M">John</Name> <Name type="F">Susan& 阅读全文
posted @ 2012-04-07 16:29 Danny Chen 阅读(371) 评论(0) 推荐(0) 编辑
摘要: you have to use XmlBuilder object to build XML file/stringe.g./////XML<?xml version="1.0" encoding="utf-8"?><children> <!--Children below...--> <child age="1" referenceNumber="ref-1">child &amp; content #1</child> <child ag 阅读全文
posted @ 2012-04-07 16:28 Danny Chen 阅读(230) 评论(0) 推荐(0) 编辑