using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class A02_Generic : MonoBehaviour
{
[ContextMenu("测试Start")]
// Start is called before the first frame update
void Start()
{
Persons people = new Persons()
{
new Person("1.zhang san",1.57f,63),
new Person("2.Li si",1.75f,59),
new Person("3333333",1.65f,56),
new Person("44444444",1.7f,61),
};
Debug.Log("原生数据");
people.ForEach(p => Debug.Log(p));
Debug.Log("\n身高排序");
people.Sort(new PersonHeightCompare());
people.ForEach(p => Debug.Log(p));
Debug.Log("\n过滤");
var fits = people.Filt
要关闭 Visual Studio Code 的自动检查更新功能,请按照以下步骤进行操作:
打开 Visual Studio Code。点击左侧的扩展图标(四个方块组成的图标)。在扩展面板中,点击右上角的齿轮图标,选择 “扩展设置”。在…