Пример #1
0
        public override int GetHashCode()
        {
            UnitType this_type = this.Type;

            switch (this_type)
            {
            case UnitType.Float:
                return(floatValue.GetHashCode());

            case UnitType.Integer:
                return(integerValue.GetHashCode());

            case UnitType.Char:
                return(charValue.GetHashCode());

            case UnitType.Null:
                return(UnitType.Null.GetHashCode());

            case UnitType.Boolean:
                return(boolValue.GetHashCode());

            default:
                return(heapUnitValue.GetHashCode());
            }
        }
 internal XLColor(XLThemeColor themeColor, Double themeTint)
 {
     _themeColor = themeColor;
     _themeTint = themeTint;
     _hashCode = 7 ^ _themeColor.GetHashCode() ^ _themeTint.GetHashCode();
     HasValue = true;
     _colorType = XLColorType.Theme;
 }
Пример #3
0
        internal Value(System.Double value, Parameterization p = Parameterization.Value)
            : base(value)
        {
            Original  = value;
            _clrType  = typeof(System.Double);
            _hashCode = GetCrossTypeHashCode(_clrType, value.GetHashCode());

            Build = (buildContext, buildArgs) =>
            {
                return((p != Parameterization.None) ? (value.Parameterize(buildContext, p) ?? Mapping.BuildCast(value)) : Mapping.BuildCast(value));
            };
        }
Пример #4
0
        static StackObject *GetHashCode_15(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Double instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);

            var result_of_this_method = instance_of_this_method.GetHashCode();

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method;
            return(__ret + 1);
        }
Пример #5
0
 public override int GetHashCode()
 {
     return(Angular.GetHashCode() ^ Linear.GetHashCode());
 }
Пример #6
0
 /// <summary>
 /// Serves as the hash function for <see cref="Vector4"/>.
 /// </summary>
 /// <returns>A hash code for this vector.</returns>
 public override int GetHashCode()
 {
     return(y.GetHashCode() ^ x.GetHashCode() ^ z.GetHashCode() ^ w.GetHashCode());
 }
Пример #7
0
 public override int GetHashCode()
 {
     return(normal.GetHashCode() ^ d.GetHashCode());
 }
Пример #8
0
 public override int GetHashCode()
 {
     return(Radians.GetHashCode());
 }
Пример #9
0
 /// <summary>
 ///		Provides a unique hash code based on the member variables of this
 ///		class.  This should be done because the equality operators (==, !=)
 ///		have been overriden by this class.
 ///		<p/>
 ///		The standard implementation is a simple XOR operation between all local
 ///		member variables.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(X.GetHashCode() ^ Y.GetHashCode() ^ Z.GetHashCode() ^ W.GetHashCode());
 }
Пример #10
0
 public override int GetHashCode()
 {
     return
         (m00.GetHashCode() ^ m01.GetHashCode() ^ m02.GetHashCode() ^
          m10.GetHashCode() ^ m11.GetHashCode() ^ m12.GetHashCode());
 }
Пример #11
0
 public override int GetHashCode()
 {
     return((X.GetHashCode()) ^ (Y.GetHashCode() << 2));
 }
Пример #12
0
 public override int GetHashCode()
 {
     return(Position.GetHashCode() ^ Radius.GetHashCode());
 }
Пример #13
0
 public override int GetHashCode()
 {
     return(m_v.GetHashCode());
 }
Пример #14
0
 public override int GetHashCode()
 {
     return(Normal.GetHashCode() ^ D.GetHashCode());
 }
Пример #15
0
 protected override int hashCode()
 {
     return(value.GetHashCode());
 }