public static IntCalValue GetCalValue(int value) { IntCalValue calValue = (_calValueQueue.Count == 0) ? new IntCalValue() : _calValueQueue.Dequeue(); calValue.value = value; return(calValue); }
public static void RecycleCalValue(IntCalValue calValue) { _calValueQueue.Enqueue(calValue); }