原创 Linq 求最大值,最小值,平均值等基本操作

class Program { static void Main(string[] args) { List<Project> plist = new List<Pr

原创 鏈表

public class MyNode { private Node headNode; private Node lastNode; private int size; public void insert(int index

原创 Sql Server 分頁拓展

--更新sql分頁寫法 Create Database MySchoolDB1220 go use MySchoolDB1220 go --年級表 create table Grade ( Id int primary key

原创 DataTable轉list集合

public static List DataTableToList(DataTable dt) where T:new() { List list = new List(); PropertyInfo[] ps

原创 MVC界面JS簡單實現打卡功能

--新建一個MVC控制器,添加視圖 @{ ViewBag.Title = "Index"; Layout = "~/Views/ModelView.cshtml"; } <h2>打卡</h2> <div id=

原创 C#反射是什麼?概念+代碼

//反射是.NET中的重要機制,通過反射,可以在運行時獲得.NET中每一個類型 //(包括類、結構、委託、接口和枚舉等)的成員,包括方法、屬性、事件,以及構造函數等。 //有了反射,即可對每一個類型瞭如指掌,如果獲得了構造函數

原创 C#調用泛型實現學生冒泡排序

static void Main (string[] args) { //傳入一個學生集合 Stu[] s = new Stu[] {

原创 C#反射,泛型實現添加

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

原创 LinQ詳解

1.簡單的linq語法 //1 var ss = from r in db.Am_recProScheme select r; //2

原创 EF幫助類

using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WEBAPI.Models {

原创 驗證碼Helper

using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Web; namespa

原创 簡單易懂的DBHelper幫助類

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;