06 2021 档案
摘要:实现IEnumerator与IEnumerable完成foreach遍历 重写IEnumerator public class ColorEnumerator : IEnumerator { string[] colors; int position = -1; /// <summary> ///
阅读全文
摘要:当我们想拖拽ScrollView上面的物体时 向上拖拽会跟ScrollView的向上滑动冲突。直接看代码 我们先创建一个父类 using System.Collections; using System.Collections.Generic; using UnityEngine; using
阅读全文
摘要:直接看代码 让想要排序的类继承IComparable 并实现CompareTo方法(我的打印是为了看他是怎么做对比的) 调用 打印(看到打印就很清晰的看到它是如何对比的了)
阅读全文

浙公网安备 33010602011771号