public bool Equals(object x, object y) { ObjectWithId xObject = x as ObjectWithId; ObjectWithId yObject = y as ObjectWithId; return(xObject.Id.Equals(yObject.Id)); }
public ObjectWithId(ObjectWithId other) { m_id = other.m_id; m_name = other.m_name; m_iconPath = other.m_iconPath; m_icon = other.m_icon; }
public int CompareTo(object obj) { ObjectWithId other = obj as ObjectWithId; return(m_id.CompareTo(other.m_id)); }
public int GetHashCode(object obj) { ObjectWithId @object = obj as ObjectWithId; return(@object.Id.GetHashCode()); }