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

            // Return true if the fields match:
            return(DateTime.Equals(p.DateTime) &&
                   FileName.Equals(p.FileName) &&
                   EventType.Equals(p.EventType) &&
                   UploadStatus.Equals(p.UploadStatus) &&
                   Link.Equals(p.Link));
        }
Beispiel #2
0
        public override bool Equals(object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return(false);
            }

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

            if (p == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return(DateTime.Equals(p.DateTime) &&
                   FileName.Equals(p.FileName) &&
                   EventType.Equals(p.EventType) &&
                   UploadStatus.Equals(p.UploadStatus) &&
                   Link.Equals(p.Link));
        }