zoukankan      html  css  js  c++  java
  • 123

    //PaymentDto dto = new Payment() { Amount = 2.512M, User = "张三" };

    //Payment payment = new PaymentDto() { User = "李四", AmountString = "1.364", Address = "无锡市新吴区" };

    //List<Employee> empList = new List<Employee>();
    //empList.Add(new Employee()
    //{
    // ID = 1,
    // FName = "John",
    // Age = 24,
    // Sex = 'F'
    //});

    //empList.Add(new Employee()
    //{
    // ID = 1,
    // FName = "John",
    // Age = 23,
    // Sex = 'M'
    //});

    //empList.Add(new Employee()
    //{
    // ID = 2,
    // FName = "Mary",
    // Age = 25,
    // Sex = 'F'
    //});

    //empList.Add(new Employee()
    //{
    // ID = 3,
    // FName = "Amber",
    // Age = 23,
    // Sex = 'M'
    //});
    //empList.Add(new Employee()
    //{
    // ID = 4,
    // FName = "Kathy",
    // Age = 25,
    // Sex = 'M'
    //});
    //empList.Add(new Employee()
    //{
    // ID = 5,
    // FName = "Lena",
    // Age = 27,
    // Sex = 'F'
    //});

    //empList.Add(new Employee()
    //{
    // ID = 6,
    // FName = "Bill",
    // Age = 28,
    // Sex = 'M'
    //});

    //empList.Add(new Employee()
    //{
    // ID = 7,
    // FName = "Celina",
    // Age = 27,
    // Sex = 'F'
    //});
    //empList.Add(new Employee()
    //{
    // ID = 8,
    // FName = "John",
    // Age = 28,
    // Sex = 'M'
    //});


    //// 实现多key分组的扩展函数版本
    //var sums = empList
    // .GroupBy(x => new { x.ID, x.FName });
    //foreach (var employee in sums)
    //{
    // Console.WriteLine(employee.Key+ ": " );
    //}


    //var a = new List<int> { 1,2,3};
    //var b = new List<int>();

    //b.AddRange(a);

    //a.Clear();

    //var d = b;

    //var f = a;

  • 相关阅读:
    BZOJ2303:[APIO2011]方格染色(并查集)
    BZOJ1116:[POI2008]CLO(并查集)
    BZOJ4011:[HNOI2015]落忆枫音(DP,拓扑排序)
    洛谷1387 最大正方形
    洛谷 P1858 多人背包
    vijos 1085 Sunnypig闯三角关
    vijos 1030 重叠的方框
    codevs 1001 舒适的路线 WK
    1266. [NOIP2012] 借教室
    codevs 2370 小机房的树
  • 原文地址:https://www.cnblogs.com/myloveblogs/p/12717923.html
Copyright © 2011-2022 走看看