Пример #1
0
        ///-------------------------------------------------------------------------------------------------
        /// <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();
            }
        }
Пример #2
0
 ///-------------------------------------------------------------------------------------------------
 /// <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;
 }