///------------------------------------------------------------------------------------------------- /// <summary> /// Releases the unmanaged resources used by the Hyperstore.Modeling.ModelElement and optionally /// releases the managed resources. /// </summary> /// <param name="disposing"> /// true to release both managed and unmanaged resources; false to release only unmanaged /// resources. /// </param> ///------------------------------------------------------------------------------------------------- protected override void Dispose(bool disposing) { base.Dispose(disposing); _propertiesByName = null; if (_properties != null) { _properties.Dispose(); } if (_superClassHandler != null) { _superClassHandler.Dispose(); } }
///------------------------------------------------------------------------------------------------- /// <summary> /// Releases the unmanaged resources used by the Hyperstore.Modeling.ModelElement and optionally /// releases the managed resources. /// </summary> /// <param name="disposing"> /// true to release both managed and unmanaged resources; false to release only unmanaged /// resources. /// </param> ///------------------------------------------------------------------------------------------------- protected override void Dispose(bool disposing) { base.Dispose(disposing); _propertyMetadataReference.Dispose(); _defaultValueProperty = null; }