示例#1
0
        public override bool Equals(object obj)
        {
            //return base.Equals( obj );
            bool equal = true;

            if (obj is LocationCopy)
            {
                LocationCopy other = ( LocationCopy )obj;
                equal = (_route == other._route) &&
                        (_section == other._section) &&
                        (_direction == other._direction) &&
                        (_linear == other._linear) &&
                        (_start == other._start) &&
                        (_end == other._end);
            }
            else
            {
                equal = base.Equals(obj);
            }

            return(equal);
        }
示例#2
0
 public TreatmentCopy(string treatmentName, int treatmentYear, LocationCopy originalLocation)
 {
     _treatmentName    = treatmentName;
     _treatmentYear    = treatmentYear;
     _originalLocation = originalLocation;
 }