using static CMS_CORE_Library.DataStructures; namespace Step.Model.DTOModels { public class DTOAxisNameModel : AxisModel { public override bool Equals(object obj) { var item = obj as DTOAxisNameModel; // Object is not a DTOAxisNameModel instance if (item == null) return false; if (item.Id != Id) return false; if (item.Name != Name) return false; return true; } public override int GetHashCode() { return base.GetHashCode(); } } }