Пример #1
0
        /// <summary>
        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
        /// </summary>
        /// <param name="disposing">Boolean value that determines whether to free resources or not.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                TurnState.Dispose();
            }

            _disposed = true;
        }
 /// <summary>
 /// Frees resources.
 /// </summary>
 public void Dispose()
 {
     TurnState.Dispose();
 }