private ObjectProgress GetOp() { ObjectProgress progress = null; if ((this.opPool != null) && !this.opPool.IsEmpty()) { progress = (ObjectProgress)this.opPool.Pop(); progress.Init(); return(progress); } return(new ObjectProgress()); }
private ObjectProgress GetOp() { ObjectProgress op = null; if (_opPool != null && !_opPool.IsEmpty()) { op = (ObjectProgress)_opPool.Pop(); op.Init(); } else { op = new ObjectProgress(); } return(op); }