コード例 #1
0
        public override bool Equals(object obj)
        {
            ICompositeData other = obj as ICompositeData;

            return(other != null &&
                   CompositeType.Equals(other.CompositeType) &&
                   GetAll(CompositeType.KeySet.OrderBy(x => x)).SequenceEqual(other.GetAll(CompositeType.KeySet.OrderBy(x => x))));
        }
コード例 #2
0
        public sealed override bool Equals(object obj)
        {
            TabularType other = obj as TabularType;

            if (other != null && TypeName.Equals(other.TypeName) && _rowType.Equals(other._rowType) &&
                _indexNames.Count == other._indexNames.Count)
            {
                for (int i = 0; i < _indexNames.Count; i++)
                {
                    if (_indexNames[i] != other._indexNames[i])
                    {
                        return(false);
                    }
                }
                return(true);
            }
            else
            {
                return(false);
            }
        }