public virtual IEngine GetStandardEngine(int size) { IEngine e = null; bool found = standardEnginePool.TryGetValue(size, out e); if (! found) { e = new StandardEngine(size); standardEnginePool[size] = e; } return e; }
public virtual IEngine GetStandardEngine(int size) { IEngine e = null; bool found = standardEnginePool.TryGetValue(size, out e); if (!found) { e = new StandardEngine(size); standardEnginePool[size] = e; } return(e); }