当前位置:网站首页>LINQ query collection class introductory cases Wulin expert class

LINQ query collection class introductory cases Wulin expert class

2022-06-24 21:59:00 No. 1 in Jinan medical applet

 using System;
using System.Collections.Generic;//  Introduce the necessary namespace  
using System.Linq;
using System.Text;



namespace ConsoleApp624
{
  public  class Program
    {
       public static void Main(string[] args)
        {
            Console.WriteLine("LH World!");





            //  Create a collection class  
            //  Initialize Wulin experts  
            var masterlist = new List<linqMaster>()
            { 
              // initialization     Create many objects linqMaster Put it in the collection 
              new linqMaster(){ID=100,age=100,menpai=" Beggars' sect ",Level=1,Kongfu=" nine men's power "},
              new linqMaster(){ID=1,age=100,menpai=" Beggars' sect 2",Level=1,Kongfu=" nine men's power "},
              new linqMaster(){ID=2,age=100,menpai=" Beggars' sect 3",Level=1,Kongfu=" nine men's power "},
              new linqMaster(){ID=100,age=100,menpai=" Beggars' sect ",Level=1,Kongfu=" nine men's power "},
              new linqMaster(){ID=10
原网站

版权声明
本文为[No. 1 in Jinan medical applet]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241519228027.html