![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
*tech - C#/Asp.net
carolbaby
You could read my blog for details
展开
-
C#中的struct和class的区别,挺有意思的
先不说大道理,看段代码吧: ClassA objA = new ClassA(); objA.m_nValue = 1; ClassA objA2 = objA; objA.m_nValue = 2; MessageBox.Show(objA2.m_nValue.ToString());当ClassA是一个Class的时候,和ClassA是一个Struct的时候,结果会原创 2004-08-04 15:04:00 · 1209 阅读 · 2 评论 -
写了个小函数,从XML文件转换到CSV文件的
第一次用C#里面的XmlDataDocument类,发现真好用:) public void Transfer(string inXmlFilename, string outCSVFilename) { // open or create FileStream fileCsv = new FileStream(outCSVFilename,FileMode.OpenOrCreate,F原创 2005-06-06 19:22:00 · 2792 阅读 · 1 评论 -
The automation of COM+ configuration via COMAdmin (COM)
Initialization:COMAdminCatalog.Connect("127.0.0.1"); Get Collections (COMAdminCatalogCollection):For the 1st level (e.g. Applications):applicationCollection = COMAdminCatalog.GetCollection(原创 2007-03-14 04:17:00 · 1815 阅读 · 0 评论 -
How to close SqlConnection via DataReader. 如何通过DataReader关闭SqlConnection
It is a common issue of how to handle SqlConnection gracefully, when implementing some general helper methods likeSqlDataReader ExecuteReader(string connectionString, CommandType commandType, stri原创 2008-02-22 08:29:00 · 1167 阅读 · 0 评论