Пример #1
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        public override void Destroy()
        {
            if (DisposeBindableOnDestroy)
            {
                Bindable.Dispose();
            }

            base.Destroy();
        }
Пример #2
0
        public void Dispose()
        {
            OnDispose();

            foreach (var d in ReferencedDisposables)
            {
                try
                {
                    d.Dispose();
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex);
                }
            }

            ReferencedDisposables.Clear();

            storage.Dispose();
            Ctx.Dispose();
        }