Esempio n. 1
0
        public override int GetHashCode()
        {
            var hash = 17;

            hash = hash * 23 + MSFeatureID.GetHashCode();
            hash = hash * 23 + MSMSFeatureID.GetHashCode();
            hash = hash * 23 + MSDatasetID.GetHashCode();
            hash = hash * 23 + RawDatasetID.GetHashCode();

            return(hash);
        }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            var other = (MSFeatureToMSnFeatureMap)obj;

            if (other == null)
            {
                return(false);
            }
            if (!RawDatasetID.Equals(other.RawDatasetID))
            {
                return(false);
            }
            if (!MSFeatureID.Equals(other.MSFeatureID))
            {
                return(false);
            }
            if (!MSMSFeatureID.Equals(other.MSMSFeatureID))
            {
                return(false);
            }
            return(MSDatasetID.Equals(other.MSDatasetID));
        }