摘要:
1. C# 2.0 泛型编程 2.List 泛型类描述:可通过索引访问的对象的强类型列表。提供用于对列表进行搜索、排序和操作的方法。 3. 泛型的优点 4.泛型类型参数 5. 泛型类型参数的约束 6. 泛型类7. 泛型接口 8. 泛型方法 9. 泛型和数组 阅读全文
2007年11月15日 #
摘要:
List 泛型类 注意:此类在 .NET Framework 2.0 版中是新增的。 表示可通过索引访问的对象的强类型列表。提供用于对列表进行搜索、排序和操作的方法。 命名空间:System.Collections.Generic 程序集:mscorlib(在 mscorlib.dll 中) 语法: C# [SerializableAttribute] public class List ... 阅读全文
摘要:
C#泛型演示 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Stack { private T[] store; private int siz... 阅读全文
摘要:
Where do you want to connect today? ... 阅读全文
摘要:
SQL Native Client ODBC Driver Standard security Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword; ... 阅读全文
摘要:
ODBC Standard Security Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Uid=myUsern... 阅读全文
摘要:
本文将详细介绍如何使用Connection对象连接数据库。对于不同的.NET数据提供者,ADO.NET采用不同的Connection对象连接数据库。这些Connection对象为我们屏蔽了具体的实现细节,并提供了一种统一的实现方法。 Connection类有四种:SqlConnection,OleDbConnection,OdbcConnection和OracleConnection。 ... 阅读全文