protected virtual void Dispose(bool disposing) { // make sure we don't accidentally // check flags in this state... flags |= FL_CHECKED; SetFlag(FLAG_DISPOSED, true); cacheItems = null; converter = null; editor = null; accessibleObject = null; if (disposing) { DisposeChildren(); } }
protected virtual void Dispose(bool disposing) { this.flags |= -2147483648; this.SetFlag(0x2000, true); this.cacheItems = null; this.converter = null; this.editor = null; this.accessibleObject = null; if (disposing) { this.DisposeChildren(); } }