public void Pool() { List.Clear(); lock (PooledGasValuesLists) { PooledGasValuesLists.Add(this); } }
public void Pool() { for (int i = 0; i < List.Count; i++) { List[i].Pool(); } List.Clear(); lock (PooledGasValuesLists) { PooledGasValuesLists.Add(this); } }