这不是最迷人的方法,但是有效。
(必须有
using System.Linq;
int maxValue = anArray.Max(); int maxIndex = anArray.ToList().IndexOf(maxValue);
上一篇 必须声明标量变量@Id吗?
下一篇 通用约束,其中T:struct和T:class
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号