上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 44 下一页
摘要: c#值类型和引用类型在C#中,值类型:整型、布尔型、字符型、实数型、结构型、枚举型。引用类型:类、对象、字符串、数组、接口、委托。区别:1、值类型通常被分配在栈上,它的变量直接包含变量的实例,使用效率比较高。2、引用类型分配在托管堆上,引用类型的变量通常包含一个指向实例的指针,变量通过该指针来引用实例。3、值类型继承自ValueType(注意:而System.ValueType又继承自System.Object);而引用类型继承自System.Object。 4、值类型变量包含其实例数据,每个变量保存了其本身的数据拷贝(副本),因此在默认情况下,值类型的参数传递不会影响参数本身;而引用类型变. 阅读全文
posted @ 2011-08-31 10:45 higirle 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 1. 面试题:接口和抽象类的区别 一、抽象类: 抽象类是特殊的类,只是不能被实例化;除此以外,具有类的其他特性;重要的是抽象类可以包括抽象方法,这是普通类所不能的。抽象方法只能声明于抽象类中,且不包含任何实现,派生类必须覆盖它们。另外,抽象类可以派生自一个抽象类,可以覆盖基类的抽象方法也可以不覆盖,如果不覆盖,则其派生类必须覆盖它们。二、接口: 接口是引用类型的,类似于类,和抽象类的相似之处有三点: 1、不能实例化; 2、包含未实现的方法声明; 3、派生类必须实现未实现的方法,抽象类是抽象方法,接口则是所有成员(不仅是方法包括其他成员); 另外,接口有如下特性:接口除了可以包含方法之外,还可. 阅读全文
posted @ 2011-08-31 10:32 higirle 阅读(273) 评论(0) 推荐(0) 编辑
摘要: http://www.uml.org.cn/SoftWareProcess/SoftWareProcess.asp#7 http://www.uml.org.cn/ 阅读全文
posted @ 2011-08-29 12:46 higirle 阅读(285) 评论(0) 推荐(0) 编辑
摘要: The volatile keyword indicates that a field might be modified by multiple threads that are executing at the same time. Fields that are declared volatile are not subject to compiler optimizations that assume access by a single thread. This ensures that the most up-to-date value is present in the fie. 阅读全文
posted @ 2011-08-18 16:11 higirle 阅读(379) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.IO;usingSystem.Diagnostics;usingSystem.Collections;namespaceConsoleApplication2{classProgram{staticvoidMain(string[]args){List<string>paths=newList<string>();paths.Add(@"\\pat111");paths.A 阅读全文
posted @ 2011-08-11 18:16 higirle 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/lanse777/archive/2007/03/28/691757.htmlSQL Server 连接字符串和身份验证 SQL Server .NET Data Provider 连接字符串包含一个由一些属性名/值对组成的集合。每一个属性/值对都由分号隔开。 PropertyName1=Value1;PropertyName2=Value2;PropertyName3=Value3;.....同样,连接字符串必须包含SQL Server实例名称: Data Source=ServerName; 使用本地的SQL Server(localh. 阅读全文
posted @ 2011-08-02 13:26 higirle 阅读(256) 评论(0) 推荐(0) 编辑
摘要: http://msdn.microsoft.com/en-us/library/system.xml.linq.xdocument.parse.aspxhttp://msdn.microsoft.com/en-us/library/system.xml.linq.xdocument.load.aspx 阅读全文
posted @ 2011-07-29 19:02 higirle 阅读(383) 评论(0) 推荐(0) 编辑
摘要: http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/SQL SERVER – Insert Data From One Table to Another Table – INSERT INTO SELECT – SELECT INTO TABLEAugust 15, 2007 by pinaldaveFollowing three questions are many time as. 阅读全文
posted @ 2011-07-28 18:07 higirle 阅读(297) 评论(0) 推荐(0) 编辑
摘要: http://blog.sqlauthority.com/2007/09/13/sql-server-difference-between-exec-and-execute-vs-exec-use-execexecute-for-sp-always/SQL SERVER – Difference Between EXEC and EXECUTE vs EXEC() – Use EXEC/EXECUTE for SP alwaysSeptember 13, 2007 by pinaldaveWhat is the difference between EXEC and EXECUTE?They. 阅读全文
posted @ 2011-07-28 15:17 higirle 阅读(311) 评论(0) 推荐(0) 编辑
摘要: ORDER BY items must appear in the select list if the statement contains a UNION, INTERSECT or EXCEPT operator.Solution 1:To fix this problem I put my Union statement into a derived table by doing the following.SELECT * FROM (SELECT Column1, Column2 FROM Table_AUNION ALLSELECT Column1, Column2 FROM . 阅读全文
posted @ 2011-07-28 15:04 higirle 阅读(536) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 44 下一页