天天看點

C# 學習筆記及參考文檔

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