跟小D每日学口语
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 77 下一页
摘要: 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) 编辑
摘要: http://www.extension.harvard.edu/courses/subject/computer-science#119 阅读全文
posted @ 2012-04-03 10:48 Danny Chen 阅读(128) 评论(0) 推荐(0) 编辑
摘要: XML Schema是以XML语言为基础的,它用于可替代DTD。 一份XML schema文件描述了XML文档的结构。 XML Schema语言也被称为XML Schema Definition (XSD)(XML Schema定义). 1.什么是XML Schema? XML Schema的作用是定义一份XML文档的合法组件群,就像DTD的作用一样,一份XML Schema: 定义了可以出现在文档里的元素 定义了可以出现在文档里的属性 定义了哪些元素是子元素 定义了子元素的顺序 定义了子元素的数量 定义了一个元素应是否能包含文本,或应该是空的... 阅读全文
posted @ 2012-04-03 09:54 Danny Chen 阅读(584) 评论(0) 推荐(0) 编辑
摘要: The csproj files are in fact MSBuild files. The xsd for those can be found here:%windir%\Microsoft.NET\Framework\[framework version]\Microsoft.Build.xsd 阅读全文
posted @ 2012-04-01 12:52 Danny Chen 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Question : Whilst investigating a memory leak I discovered that it was caused by calling NewRow() on a Table inside a loop many times. However the DataRow created was never added to the Table Rows collection and the Table Rows Count never got above zero.My question is why does this use up more memor 阅读全文
posted @ 2012-03-31 18:57 Danny Chen 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 摘要:有时候我们的数据存放在Excel中(特别是对于用户来说更喜欢使用Excel收集一些常用数据),而系统又需要这些数据来处理其他业务,那么此时我们就需要将这些数据导入到数据库中。但是鉴于Excel的样式多种多样,因此每次导入时都必须书写很多重复的代码。很明显对于一个软件开发者做这些重复劳动是一件很无趣的事情。那么怎样来寻中一种通用的方法呢?今天我们就一块看一下如何来解决这个问题。 主要内容 Excel操作组件的选择 总体设计思路 配置文件设计 类设计 编码实现 一点补充 简单的测试 总结 一、Excel操作组件的选择 在开始今天的主题之前我们先简单的看一个基础的问题,那就是如何进行Excel 阅读全文
posted @ 2012-03-29 14:33 Danny Chen 阅读(628) 评论(2) 推荐(0) 编辑
摘要: Add [CLSCompliant(false)] attribute for class.It's means don't need to do CLS check for another language(VB.NET,F#) but C#. 阅读全文
posted @ 2012-03-29 09:49 Danny Chen 阅读(382) 评论(0) 推荐(0) 编辑
摘要: -- 来源于网络-- 更详细的介结参考联机帮助文档xp_cmdshell --*执行DOS各种命令,结果以文本行返回。xp_fixeddrives --*查询各磁盘/分区可用空间xp_loginconfig --*报告SQL Server 实例在Windows 上运行时的登录安全配置xp_logininfo --*返回有关Windows 认证登录的信息。xp_msver --*返回有关Microsoft SQL Server 的版本信息xp_enumgroups --返回Windows用户组列表或在指定域中的全局组列表。xp_sendmail --将电子邮件发送给指定的收件人(后续版本将删除该 阅读全文
posted @ 2012-03-29 00:06 Danny Chen 阅读(313) 评论(0) 推荐(0) 编辑
摘要: public访问不受限制。protected访问仅限于包含类或从包含类派生的类型。internal访问仅限于当前项目。protectedinternal访问仅限于从包含类派生的当前项目或类型。private访问仅限于包含类型。引用自:http://ajunsj.blog.163.com/blog/static/1067534200854113951124/ 阅读全文
posted @ 2012-03-28 15:25 Danny Chen 阅读(308) 评论(0) 推荐(0) 编辑
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 77 下一页