Example #1
0
        //
        public void Destroy()
        {
            lock ((object)this)
            {
                if (OnDestroy != null)
                {
                    OnDestroy.Invoke();
                }

                OnChanged = null;
                OnDestroy = null;
            }
        }
Example #2
0
        //
        public void Destroy()
        {
            lock ((object)this)
            {
                foreach (JToken value in this)
                {
                    Tome.Destroy(value);
                }

                if (OnDestroy != null)
                {
                    OnDestroy.Invoke();
                }

                OnChanged = null;
                OnDestroy = null;
                OnAdd     = null;
                OnDel     = null;
            }
        }
Example #3
0
        //
        public void Destroy()
        {
            lock ((object)this)
            {
                foreach (KeyValuePair <string, JToken> property in this)
                {
                    Tome.Destroy(property.Value);
                }

                if (OnDestroy != null)
                {
                    OnDestroy.Invoke();
                }

                OnChanged = null;
                OnDestroy = null;
                OnAdd     = null;
                OnDel     = null;
            }
        }