27 lines
602 B
C#
27 lines
602 B
C#
using System;
|
|||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Linq;
|
||
|
|
using System.Text;
|
||
|
|
using System.Threading.Tasks;
|
||
|
|
|
||
|
|
namespace JY.Inspection.Common
|
||
|
|
{
|
||
|
|
public class CollectionUtil
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 生成ushort List集合
|
||
|
|
/// </summary>
|
||
|
|
/// <param name="Num"></param>
|
||
|
|
/// <returns></returns>
|
||
|
|
public static List<short> GetListUShort(int Num)
|
||
|
|
{
|
||
|
|
List<short> list = new List<short>();
|
||
|
|
for (int i = 0; i < Num; i++)
|
||
|
|
{
|
||
|
|
list.Add(1);
|
||
|
|
}
|
||
|
|
return list;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|