Beispiel #1
0
        public bool Equals(ParticipantDataStage p)
        {
            // If parameter is null return false:
            if ((object)p == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return((Arm == p.Arm) && (DataRequired == p.DataRequired));
        }
Beispiel #2
0
        public override bool Equals(System.Object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return(false);
            }

            // If parameter cannot be cast to ParticipantDataStage return false.
            ParticipantDataStage p = obj as ParticipantDataStage;

            if ((System.Object)p == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return((Arm == p.Arm) && (DataRequired == p.DataRequired));
        }