public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + Name.GetHashCode(); hash = hash * 23 + Type.GetHashCode(); hash = hash * 23 + MciFile.GetHashCode(); return(hash); } }
public int CompareTo(PublicObject other) { if (other == null) { return(1); } int compare = Name.CompareTo(other.Name); if (compare == 0) { compare = Type.CompareTo(other.Type); } if (compare == 0) { compare = MciFile.CompareTo(other.MciFile); } return(compare); }