我想在数组中获取包含我在C#中的值的索引.例如,我的数组是:
byte[] primes = {2, 3, 5, 7, 11, 13};
对于这个例子,我将得到值为11的索引.数组类型是Byte.
c# arrays
arrays ×1
c# ×1