上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: 这边以Sum为例,Max,Min,Average用法类似 一、 Array static void SumArray() { Console.WriteLine("SumArray:"); int[] intNumbers = new int[] { 10, 30, 50, 40, 60, 20, 阅读全文
posted @ 2022-08-26 17:59 katesharing 阅读(43) 评论(0) 推荐(0)
摘要: 一、数据准备 public class Student { public int ID { get; set; } public string Name { get; set; } public string Gender { get; set; } public string Branch { g 阅读全文
posted @ 2022-08-26 17:13 katesharing 阅读(39) 评论(0) 推荐(0)
摘要: 一、数据准备 public class Student { public int ID { get; set; } public string Name { get; set; } public string Gender { get; set; } public string Branch { g 阅读全文
posted @ 2022-08-26 17:06 katesharing 阅读(53) 评论(0) 推荐(0)
摘要: 一、数据准备 public class Employee { public int ID { get; set; } public string Name { get; set; } public int AddressId { get; set; } public int DepartmentId 阅读全文
posted @ 2022-08-25 18:13 katesharing 阅读(177) 评论(0) 推荐(0)
摘要: 一、 数据准备 public class Employee { public int ID { get; set; } public string Name { get; set; } public int AddressId { get; set; } public static List<Emp 阅读全文
posted @ 2022-08-25 17:33 katesharing 阅读(464) 评论(0) 推荐(0)
摘要: Create Table Employee (ID int identity(1,1) primary key, FullName nvarchar(20) not null, DeptID int , AddressID int ) 阅读全文
posted @ 2022-08-25 15:25 katesharing 阅读(41) 评论(0) 推荐(0)
摘要: 1. 数据准备 Employee类如下:(构造数据时,特意把奇数ID的Employee设置成没有Department) public class Employee { public int ID { get; set; } public string Name { get; set; } publi 阅读全文
posted @ 2022-08-24 17:18 katesharing 阅读(39) 评论(0) 推荐(0)
摘要: 1. 数据准备 using System.Collections.Generic; namespace LINQTutorial { public class Employee { public int ID { get; set; } public string Name { get; set; 阅读全文
posted @ 2022-08-24 16:37 katesharing 阅读(1737) 评论(0) 推荐(0)
摘要: 官方解释 上面解释:1)TryGetValue是根据key返回相应的数据到value,如果没有key则返回默认值到value; 2)这个方法的返回是bool值,如果dictionary里有存在相应的key为true,没有存在,则为false 例子1 using System; using Syste 阅读全文
posted @ 2022-08-24 11:57 katesharing 阅读(11426) 评论(0) 推荐(2)
摘要: 问题:“HttpContent”未包含“ReadAsAsync”的定义,并且找不到可接受第一个“HttpContent”类型参数的可访问扩展方法“ReadAsAsync”(是否缺少 using 指令或程序集引用?) 解决方案:添加引用System.Net.Http.Formatting 阅读全文
posted @ 2022-08-18 12:21 katesharing 阅读(438) 评论(1) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页