- using System;
- using System.Collections.Generic;// 引入必要的命名空间
- using System.Linq;
- using System.Text;
-
-
-
- namespace ConsoleApp624
- {
- public class Program
- {
- public static void Main(string[] args)
- {
- Console.WriteLine("LH World!");
-
-
-
-
-
- // 创建集合类
- // 初始化武林高手
- var masterlist = new List<linqMaster>()
- {
- //初始化 创建很多对象linqMaster放到集合里面去
- new linqMaster(){ID=100,age=100,menpai="丐帮",Level=1,Kongfu="九阳神功"},
- new linqMaster(){ID=1,age=100,menpai="丐帮2",Level=1,Kongfu="九阳神功"},
- new linqMaster(){ID=2,age=100,menpai="丐帮3",Level=1,Kongfu="九阳神功"},
- new linqMaster(){ID=100,age=100,menpai="丐帮",Level=1,Kongfu="九阳神功"},
- new linqMaster(){ID=10