Ejemplo n.º 1
0
 public bool Equals(Freelancer another)
 {
     return(Name.Equals(another.Name) &&
            MonyPerHour.Equals(another.MonyPerHour) &&
            Experience.Equals(another.Experience) &&
            Gender.Equals(another.Gender));
 }
Ejemplo n.º 2
0
 public bool Equals(Employee another)
 {
     return(Name.Equals(another.Name) &&
            MonyPerHour.Equals(another.MonyPerHour) &&
            Level.Equals(another.Level) &&
            Gender.Equals(another.Gender));
 }
Ejemplo n.º 3
0
        public int CompareTo(Employee other)
        {
            if (other == null)
            {
                return(1);
            }

            return(MonyPerHour.CompareTo(other.MonyPerHour));
        }