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