// public void Destroy() { lock ((object)this) { if (OnDestroy != null) { OnDestroy.Invoke(); } OnChanged = null; OnDestroy = null; } }
// 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; } }
// 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; } }