摘要:
https://blog.csdn.net/lu_1079776757/article/details/80459370 冒泡排序:从小到大排序(小的往前排,大的往后排) 方法一: void BubbleSort(int a[], int len) { int i, j, temp; for (j 阅读全文
摘要:
有时候因为业务逻辑而需要添加一些约束,泛型添加约束使用where子句 泛型支持的几种约束 约束 说明 where T:struct 对于结构约束,类型T必须是值类型 where T:class 类约束指定类型T必须是引用类型 where T:IFoo 指定类型T必须实现接口IFoo where T: 阅读全文