Пример #1
0
 public override int GetHashCode()
 {
     return(HashCoder <ClassOneCommon> .Combine(HashCoder <string> .GetCode(this.Name),
                                                HashCoder <string> .GetCode(this.Name2),
                                                HashCoder <string> .GetCode(this.Name3),
                                                HashCoder <ClassOneCommon> .GetCode(this.One)));
 }
Пример #2
0
 public override int GetHashCode()
 {
     return(HashCoder <MethodKey> .Combine(HashCoder <Type> .GetCode(this.ObjectType)
                                           , HashCoder <Type> .GetCode(this.GenericTypes)
                                           , HashCoder <MethodParameter> .GetCode(this.Parameters)
                                           , HashCoder <bool> .GetCode(this.IsGenericVersion)));
 }
Пример #3
0
        public override int GetHashCode()
        {
            int r = HashCoder.Seed;

            r = HashCoder.Hash(r, GetPosition());
            r = HashCoder.Hash(r, IsUncertain());
            r = HashCoder.Hash(r, IsUnknown());
            return(r);
        }
Пример #4
0
        public override int GetHashCode()
        {
            int s = HashCoder.Seed;

            s = HashCoder.Hash(s, _charSeqToCompound);
            s = HashCoder.Hash(s, equivalentsMap);

            return(s);
        }
Пример #5
0
        public override int GetHashCode()
        {
            int r = HashCoder.Seed;

            r = HashCoder.Hash(r, GetId());
            r = HashCoder.Hash(r, GetDataSource());
            r = HashCoder.Hash(r, GetIdentifier());
            r = HashCoder.Hash(r, GetVersion());
            return(r);
        }
Пример #6
0
        protected override string Process(DynamicData param)
        {
            var fieldsCode = HashCoder <string> .GetCode(param.Keys); //data.Keys 是参与修改的字段名称

            string sql = _cache.GetOrCreate(fieldsCode, (t) =>
            {
                return(GetUpdateSql(this.Target, param));
            });

            return(sql);
        }
Пример #7
0
        public override int GetHashCode()
        {
            return(HashCoder.GetCode(ObjectType, (hashCodes) =>
            {
                var properties = DomainProperty.GetProperties(ObjectType);
                foreach (var property in properties)
                {
                    var propertyValue = this.GetValue(property);

                    hashCodes.Add(HashCoder <string> .GetCode(property.Name));
                    hashCodes.Add(HashCoder.GetCode(propertyValue));
                }
            }));
        }
Пример #8
0
        /// <summary>
        /// Returns the hashcode of the object.
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            switch (ColorType)
            {
            case TColorType.RGB:
                return(HashCoder.GetHash(((int)ColorType).GetHashCode(), RGB.GetHashCode(), Tint.GetHashCode()));

            case TColorType.Automatic:
                return(HashCoder.GetHash(((int)ColorType).GetHashCode(), ((int)FAutomaticType).GetHashCode(), Tint.GetHashCode()));

            case TColorType.Theme:
                return(HashCoder.GetHash(((int)ColorType).GetHashCode(), ((int)Theme).GetHashCode(), Tint.GetHashCode()));

            case TColorType.Indexed:
                return(HashCoder.GetHash(((int)ColorType).GetHashCode(), FIndex.GetHashCode(), Tint.GetHashCode()));
            }

            return(((int)ColorType).GetHashCode());
        }
Пример #9
0
        /// <summary>
        /// Returns the hashcode for this object.
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            return(HashCoder.GetHash(
                       FApplyFontSize20.GetHashCode(),
                       FApplyFontSize20 ? FFontSize20.GetHashCode() : 0,
                       FApplyFontColor.GetHashCode(),
                       FApplyFontColor ? FontColor.GetHashCode() : 0,

                       FApplyFontStyleBoldAndItalic.GetHashCode(),
                       FApplyFontStyleSubSuperscript.GetHashCode(),
                       FApplyFontStyleStrikeout.GetHashCode(),
                       FApplyFontStyleBoldAndItalic || FApplyFontStyleSubSuperscript || FApplyFontStyleStrikeout ? FFontStyle.GetHashCode() : 0,

                       FApplyFontUnderline.GetHashCode(),
                       FApplyFontUnderline ? FFontUnderline.GetHashCode() : 0,

                       FApplyPatternStyle.GetHashCode(),
                       FApplyPatternStyle ? FPatternStyle.GetHashCode() : 0,

                       FApplyPatternFg.GetHashCode(),
                       FApplyPatternFg ? FPatternFgColor.GetHashCode() : 0,

                       FApplyPatternBg.GetHashCode(),
                       FApplyPatternBg ? PatternBgColor.GetHashCode() : 0,


                       FApplyBorderLeft.GetHashCode(),
                       FApplyBorderLeft ? FBorderLeft.GetHashCode() : 0,
                       FApplyBorderRight.GetHashCode(),
                       FApplyBorderRight ? FBorderRight.GetHashCode() : 0,
                       FApplyBorderTop.GetHashCode(),
                       FApplyBorderTop ? FBorderTop.GetHashCode() : 0,
                       FApplyBorderBottom.GetHashCode(),
                       FApplyBorderBottom ? FBorderBottom.GetHashCode() : 0
                       ));
        }
Пример #10
0
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(FunctionType, GetHash(Domain), GetHash(Range), GetHash(C0), GetHash(C1), N.GetHashCode()));
 }
Пример #11
0
 public override int GetHashCode()
 {
     return(HashCoder <MethodParameter> .Combine(HashCoder <Type> .GetCode(this.Type)
                                                 , HashCoder <bool> .GetCode(this.IsGeneric)));
 }
Пример #12
0
 /// <summary>
 /// Returns the hashcode for this object.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(base.GetHashCode(), FTop.GetHashCode(), FLeft.GetHashCode(), FBottom.GetHashCode(), FRight.GetHashCode()));
 }
Пример #13
0
 /// <summary>
 /// Returns the hashcode for this object.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(base.GetHashCode(), RotationAngle.GetHashCode()));
 }
Пример #14
0
 /// <summary>
 /// Hash code for the point.
 /// </summary>
 /// <returns>hashcode.</returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(X, Y));
 }
Пример #15
0
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(Size.GetHashCode(), Name.GetHashCode(), ((int)Style).GetHashCode()));
 }
Пример #16
0
 /// <summary>
 /// Returns a hashcode for the color.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(FscR.GetHashCode(), FscG.GetHashCode(), FscB.GetHashCode()));
 }
Пример #17
0
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(FunctionType.GetHashCode(), GetHash(Domain), GetHash(Range), Data.GetHashCode(), BitsPerSample.GetHashCode()));
 }
Пример #18
0
 /// <summary>
 /// Returns a hashcode for the color.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(FHue.GetHashCode(), FSat.GetHashCode(), FLum.GetHashCode()));
 }
Пример #19
0
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(FunctionType, GetHash(Domain), GetHash(Range), Functions.GetHashCode(), GetHash(Bounds), GetHash(Encode)));
 }
Пример #20
0
 /// <summary>
 /// Returns a hashcode for the color.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(FL0.GetHashCode(), Fa0.GetHashCode(), Fb0.GetHashCode()));
 }
Пример #21
0
 /// <summary>
 /// Returns the hashcode for this struct.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(Position.GetHashCode(), Color.GetHashCode()));
 }
Пример #22
0
        /// <summary>
        /// Returns the hashcode for this object.
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            int StopsHashCode = Stops == null ? 0 : Stops.GetHashCode();

            return(HashCoder.GetHash(GradientType.GetHashCode(), StopsHashCode));
        }
Пример #23
0
 /// <summary>
 /// Returns the hashcode for this object
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(Fx.GetHashCode(), Fy.GetHashCode()));
 }