public override bool Equals(System.Object otherArmy) { if (!(otherArmy is Army)) { return(false); } else { Army testArmy = (Army)otherArmy; return(ArmyId.Equals(testArmy.ArmyId)); } }
public override int GetHashCode() { return(ArmyId.GetHashCode()); }