C#
文章平均质量分 50
lichji2016
研究生小硕一枚...
展开
-
C#类的定义与对象使用
一、以类为模板,创建对象,通过对象调用属性和方法,其语法如下:className 对象名=new className(); Student stu = new Student();/调用方法和属性格式如下:对象名.属性名stu.StudentId = 1001;//属性赋值stu.StuName = "ailmi";//属性赋值对象名.方法名: string info = stu.GetStudent();//对象调用方法demo:1.1 先编写一个student原创 2020-08-01 23:27:26 · 3921 阅读 · 0 评论 -
C# LINQ查询方法及Select()查询方法应用
class Program { static void Main(string[] args) { #region //基本方法查询 //int[] nums = { 1,9,3,4,8,6}; //List list = new List();原创 2018-01-22 20:37:16 · 20751 阅读 · 0 评论 -
C# where()筛选方法
class Program { static void Main(string[] args) { //where()筛选方法 int[] nu = { 1,8,6,4,9,7,3}; var listtt = nu.Where(item => it原创 2018-01-22 20:46:26 · 8208 阅读 · 0 评论 -
GroupBy()方法
class Program { static void Main(string[] args) { //GroupBy()方法 string[] names = { "张勇", "王琦", "李四", "王武", "孙俪", "马蓉", "王宝强" }; var lis =原创 2018-01-22 21:32:13 · 512 阅读 · 0 评论 -
C# 表格跨行和跨列应用实例
表格跨行和跨列使用实例 学生成绩表 学号姓名班级名称 2008011201 李金刚 软件1班 2008011202td> 王泽瑞原创 2018-01-27 17:58:52 · 2299 阅读 · 0 评论