예제 #1
0
            private bool disposedValue = false; // To detect redundant calls

            /// <summary>
            /// Disposes this object
            /// </summary>
            /// <param name="disposing">is this disposing managed objects</param>
            protected virtual void Dispose(bool disposing)
            {
                if (!disposedValue)
                {
                    if (disposing)
                    {
                        _buffer = null;
                    }

                    // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below.
                    // TODO: set large fields to null.

                    disposedValue = true;
                }
            }
예제 #2
0
 /// <summary>
 /// Basic constructor for the enumerator
 /// </summary>
 /// <param name="type">the transaction type, used to define where the information comes from</param>
 /// <param name="buffer">the buffer data comes from</param>
 public Enumerator(BufferTransactionType type, SingletonBuffer <TComponent> buffer)
 {
     _type   = type;
     _buffer = buffer;
 }