摘要:
private int SortByID(HorseDate a1, HorseDate a2) { if (a1.level.CompareTo(a2.level) != 0) return -(a1.level.CompareTo(a2.level)); else if (a1.ToLevel. 阅读全文
posted @ 2022-06-09 11:22
傻白甜++
阅读(392)
评论(0)
推荐(0)
摘要:
HashSet基础概念 HashSet 是 System.Collections.Generic 命名空间下的 HashSet<T> 类,是一个高性能且无序的集合。 因为HashSet是无序的,所以它既不能做排序操作,又不能像数组那样索引。在 HashSet 上只能使用foreach来进行迭代,而无 阅读全文
posted @ 2022-06-09 11:20
傻白甜++
阅读(377)
评论(0)
推荐(0)
摘要:
基类DictionaryBase 实现了 IEnumerable和ICollection 。IList接口 IDictionary接口都有add()、remove()方法。 话不多说直接上案例: using System; using System.Collections.Generic; usin 阅读全文
posted @ 2022-06-09 11:17
傻白甜++
阅读(47)
评论(0)
推荐(0)
摘要:
1: /// <summary> 2: /// 页面数据校验类 3: /// Copyright (C) Maticsoft 2004-2011 4: /// </summary> 5: public class PageValidate 6: { 7: private static Regex R 阅读全文
posted @ 2022-06-09 11:13
傻白甜++
阅读(50)
评论(0)
推荐(0)
摘要:
SQL Server 获取数据的总记录数,有两种方式: 1.先分页获取数据,然后再查询一遍数据库获取到总数量 2.使用count(1) over()获取总记录数量 SELECT * FROM ( SELECT ROW_NUMBER() OVER(ORDER BY Id DESC) rn, COUNT 阅读全文
posted @ 2022-06-09 11:10
傻白甜++
阅读(833)
评论(1)
推荐(0)
摘要:
刷题leetcode https://xiaoy.blog.csdn.net/?type=blog c#学习视频 https://www.bilibili.com/video/BV1FJ411W7e5?p=11&spm_id_from=pageDriver sqlserver语句 https://w 阅读全文
posted @ 2022-06-09 11:09
傻白甜++
阅读(143)
评论(0)
推荐(0)
摘要:
🏳️🌈字典 字典的含义:字典中key只能对应一个值不能对应多个值,线性结构。 实例化:Dictionary<键key,值value> 名字dic=new Dictionary<键key,值value>();Dictionary<string,string> Dic=new Dictionary 阅读全文
posted @ 2022-06-09 10:56
傻白甜++
阅读(1313)
评论(0)
推荐(0)