您的位置:首页 > 编程语言 > C#

C# 学习笔记及参考文档

2018-02-09 10:07 627 查看
C#中string和StringBuilder的区别
https://www.cnblogs.com/reggieqiao/p/5902149.html

C# 文件类中 File ,FileInfo 类的主要区别
https://www.cnblogs.com/youguess/p/4635644.html

C#常用快捷键
https://www.cnblogs.com/wmm15738807386/p/6723272.html

C# 枚举(Enum)
http://www.runoob.com/csharp/csharp-enum.html

C#中数组Array,ArrayList,泛型List详细对比
http://www.jb51.net/article/86782.htm
https://msdn.microsoft.com/zh-cn/library/system.array(v=vs.110).aspx

C#数据库连接
http://www.cnblogs.com/aidd2008/archive/2008/12/05/1348695.html

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
string connetionString = null;
SqlConnection cnn ;
connetionString = "Data Source=YOUR_DB_INSTANCE;Initial Catalog=DB_NAME;User ID=YOUR_USR_ID;Password=YOUR_PASSWORD";

string sql = null;
SqlCommand command;
SqlDataReader dataReader;
sql = "YOUR_SQL";

cnn = new SqlConnection(connetionString);
try
{
cnn.Open();
Console.WriteLine ("Connection Open ! ");
command = new SqlCommand(sql, cnn);
dataReader = command.ExecuteReader();
while (dataReader.Read())
{
Console.WriteLine(dataReader.GetValue(0) + " - " + dataReader.GetValue(1) + " - " + dataReader.GetValue(2));
}
dataReader.Close();
command.Dispose();
cnn.Close();
}
catch (Exception ex)
{
Console.WriteLine("Can not open connection ! ");
}
}
}
}

C#命名空间
http://www.runoob.com/csharp/csharp-namespace.html

ODBC、OLEDB和ADO之间的关系
http://blog.csdn.net/wangyy130/article/details/27100809
http://csharp.net-informations.com/data-providers/csharp-ado.net-connection.htm

一个C#解决方案中各文件夹存放了些什么
https://www.cnblogs.com/xiao9426926/p/6019234.html

SOAP Webserver 与 Restful Webserver 区别
https://www.cnblogs.com/hyhnet/archive/2016/06/28/5624422.html

C# LINQ
https://www.cnblogs.com/JackFu/p/8070361.html

C# 单元测试
https://www.cnblogs.com/KevinMO/articles/5657747.html

C# hook
https://msdn.microsoft.com/en-us/library/windows/desktop/ms632589(v=vs.85).aspx
https://www.codeproject.com/Articles/18638/Using-Window-Messages-to-Implement-Global-System-H
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  C#中string StringBuil