public bool UpdateObject(CommandContext value) { bool wasUpdated = false; foreach (var kvp in editors) { var editable = definition.GetContainable(kvp.Key) as IEditable; if (editable != null) { wasUpdated |= editable.UpdateItem(value.Content, kvp.Value); } } return(wasUpdated); }