コード例 #1
0
        public override bool Equals(object o)
        {
            if (this == o) {
                return true;
            }

            if (o == null || GetType() != o.GetType()) {
                return false;
            }

            var that = (ModuleIndexMeta) o;

            if (IsNamedWindow != that.IsNamedWindow) {
                return false;
            }

            if (!InfraName?.Equals(that.InfraName) ?? that.InfraName != null) {
                return false;
            }

            if (!InfraModuleName?.Equals(that.InfraModuleName) ?? that.InfraModuleName != null) {
                return false;
            }

            if (!IndexName?.Equals(that.IndexName) ?? that.IndexName != null) {
                return false;
            }

            return IndexModuleName?.Equals(that.IndexModuleName) ?? that.IndexModuleName == null;
        }
コード例 #2
0
ファイル: IndexSet.cs プロジェクト: VijayMVC/index-comparer
        public bool Equals(IndexSet other)
        {
            if (Object.ReferenceEquals(other, null))
            {
                return(false);
            }
            if (Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            return(SchemaName.Equals(other.SchemaName) && TableName.Equals(other.TableName) &&
                   IndexName.Equals(other.IndexName));
        }
コード例 #3
0
        public override bool Equals(object o)
        {
            if (this == o) {
                return true;
            }

            if (o == null || GetType() != o.GetType()) {
                return false;
            }

            var that = (IndexCompileTimeKey) o;

            if (IsNamedWindow != that.IsNamedWindow) {
                return false;
            }

            if (InfraModuleName != null
                ? !InfraModuleName.Equals(that.InfraModuleName)
                : that.InfraModuleName != null) {
                return false;
            }

            if (!InfraName.Equals(that.InfraName)) {
                return false;
            }

            if (Visibility != that.Visibility) {
                return false;
            }

            if (!IndexName.Equals(that.IndexName)) {
                return false;
            }

            return IndexModuleName != null
                ? IndexModuleName.Equals(that.IndexModuleName)
                : that.IndexModuleName == null;
        }