Init() private method

private Init ( ) : void
return void
        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());
        }
Exemplo n.º 2
0
        private ObjectProgress GetOp()
        {
            ObjectProgress op = null;

            if (_opPool != null && !_opPool.IsEmpty())
            {
                op = (ObjectProgress)_opPool.Pop();
                op.Init();
            }
            else
            {
                op = new ObjectProgress();
            }

            return(op);
        }