void Cleanup() { ArraySegment<byte> temp; lock (this.readAsyncEventArgs) { temp = this.frameSizeBuffer; this.frameSizeBuffer = default(ArraySegment<byte>); } if (temp.Array != null) { FrameSizeSegmentPool.ReturnBuffer(temp); } }