C#可变参数params
2021-06-22 01:05
标签:generic test mon public [] oid void using eric C#可变参数params 标签:generic test mon public [] oid void using eric 原文地址:https://www.cnblogs.com/kingBook/p/10222306.htmlusing System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TestParams:MonoBehaviour{
private void Start(){
test(1,2,3,4);
test(1,4);
int[] list= { 1, 2, 3, 4, 5, 6 };
test(list);
}
private void test(params int[] list){
}
}
上一篇:Restful Api 总结