Beispiel #1
0
        /// <summary>
        /// Executes in two distinct scenarios.
        /// If disposing equals true, the method has been called directly
        /// or indirectly by a user's code. Managed and unmanaged resources
        /// can be disposed.
        /// If disposing equals false, the method has been called by the
        /// runtime from inside the finalizer and you should not reference
        /// other objects. Only unmanaged resources can be disposed.
        /// </summary>
        /// <param name="disposing">A value indicating whether this method has been called by user code.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                this.cache.Commit();
                this.cache.Dispose();
            }

            this.files = null;
        }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the AbstractGame class.
 /// </summary>
 protected AbstractGame()
 {
     this.files = new GameFiles();
 }