List<long> 转成 long[] - ListToLongArray
2017-07-07 17:25:34 访问(1299) 赞(0) 踩(0)
/// <summary>
/// List<long> 转成 long[] - ListToLongArray
/// </summary>
/// <param name="theList"></param>
/// <returns></returns>
public static long[] ListToLongArray(List<long> theList)
{
int iCount = theList.Count;
long[] theResult = new long[iCount];
for (int i = 0; i < iCount; ++i)
{
theResult[i] = theList[i];
}
return theResult;
}
上一条:
下一条:
相关评论
发表评论