DeleteProperty method
Deletes the property from the bag.
The property to delete.
Implementation
void DeleteProperty(PropertyDefinition propertyDefinition) {
if (!_deletedProperties.containsKey(propertyDefinition)) {
Object? propertyValue;
propertyValue = _properties[propertyDefinition];
_properties.remove(propertyDefinition);
_modifiedProperties.remove(propertyDefinition);
_deletedProperties[propertyDefinition] = propertyValue;
if (propertyValue is ComplexProperty) {
propertyValue.removeChangeEvent(PropertyChanged);
}
}
}