protected bool Equals(ValuableFacilityObject other) { return(base.Equals(other) && string.Equals(Id, other.Id) && string.Equals(Name, other.Name)); }
public void Remove(ValuableFacilityObject valuable) { RemoveValuable(valuable); valuable.LinkedObjs.Where(x => x is IValuable).Cast <IValuable>().ForEach(RemoveValuable); }