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; }
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)); }; }
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); }
public override int GetHashCode() { return(Angular.GetHashCode() ^ Linear.GetHashCode()); }
/// <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()); }
public override int GetHashCode() { return(normal.GetHashCode() ^ d.GetHashCode()); }
public override int GetHashCode() { return(Radians.GetHashCode()); }
/// <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()); }
public override int GetHashCode() { return (m00.GetHashCode() ^ m01.GetHashCode() ^ m02.GetHashCode() ^ m10.GetHashCode() ^ m11.GetHashCode() ^ m12.GetHashCode()); }
public override int GetHashCode() { return((X.GetHashCode()) ^ (Y.GetHashCode() << 2)); }
public override int GetHashCode() { return(Position.GetHashCode() ^ Radius.GetHashCode()); }
public override int GetHashCode() { return(m_v.GetHashCode()); }
public override int GetHashCode() { return(Normal.GetHashCode() ^ D.GetHashCode()); }
protected override int hashCode() { return(value.GetHashCode()); }