コード例 #1
0
ファイル: list.cs プロジェクト: xiaoyao66/fastCSharp
 /// <summary>
 /// 移除第一个数据
 /// </summary>
 /// <param name="list">单向动态数组</param>
 /// <param name="value">被移除的数据</param>
 /// <returns>单向动态数组</returns>
 public static list </*Type[0]*/ ulong /*Type[0]*/> removeFirst
     (this list </*Type[0]*/ ulong /*Type[0]*/> list, /*Type[0]*/ ulong /*Type[0]*/ value)
 {
     if (list != null)
     {
         int index = list.indexOf(value);
         if (index >= 0)
         {
             list.removeAt(index);
         }
     }
     return(list);
 }