Beispiel #1
0
        /// <summary>
        /// From IDisposable.
        /// </summary>
        public virtual void Dispose()
        {
            Debug.WriteLine("Disposing effect.");

            if (Source != null)
            {
                Source.Dispose();
                Source = null;
            }

            if (Effect != null)
            {
                Effect.Dispose();
                Effect = null;
            }
        }
        /// <summary>
        /// From IDisposable.
        /// </summary>
        public virtual void Dispose()
        {
            Debug.WriteLine("Disposing effect.");

            if (_source != null)
            {
                _source.Dispose();
                _source = null;
            }

            if (_effect != null)
            {
                _effect.Dispose();
                _effect = null;
            }
        }
        /// <summary>
        /// From IDisposable.
        /// </summary>
        public void Dispose()
        {
            System.Diagnostics.Debug.WriteLine("Disposing effect.");

            if (_source != null)
            {
                _source.Dispose();
                _source = null;
            }

            if (_effect != null)
            {
                _effect.Dispose();
                _effect = null;
            }
        }