public bool Equals()

in Chemistry/src/DataModel/OrbitalIntegral/OrbitalIntegral.cs [245:266]


        public bool Equals(OrbitalIntegral x)
        {
            // If parameter is null, return false.
            if (ReferenceEquals(x, null))
            {
                return false;
            }

            // Optimization for a common success case.
            if (ReferenceEquals(this, x))
            {
                return true;
            }

            // If run-time types are not exactly the same, return false.
            if (GetType() != x.GetType())
            {
                return false;
            }
            // Return true if the fields match.
            return OrbitalIndices.SequenceEqual(x.OrbitalIndices);
        }