BF2Statistics.Net.SocketAsyncEventArgsPool.SocketAsyncEventArgsPool C# (CSharp) Method

SocketAsyncEventArgsPool() public method

Initializes the object pool with the specified size
public SocketAsyncEventArgsPool ( int capacity ) : System
capacity int Initial capacity of objects
return System
        public SocketAsyncEventArgsPool(int capacity)
        {
            this.pool = new Stack<SocketAsyncEventArgs>(capacity);
        }