/// <summary>Gets a hash code for the current instance.</summary> /// <returns>A hash code for the current instance.</returns> public override int GetHashCode() { var combinedValue = 0; { combinedValue = HashUtilities.CombineValue(x.GetHashCode(), combinedValue); combinedValue = HashUtilities.CombineValue(y.GetHashCode(), combinedValue); } return(HashUtilities.FinalizeValue(combinedValue, (sizeof(int) * 2))); }
/// <summary>Gets a hash code for the current instance.</summary> /// <returns>A hash code for the current instance.</returns> public override int GetHashCode() { var combinedValue = 0; { combinedValue = HashUtilities.CombineValue(Width.GetHashCode(), combinedValue); combinedValue = HashUtilities.CombineValue(Height.GetHashCode(), combinedValue); } return(HashUtilities.FinalizeValue(combinedValue, (sizeof(float) * 2))); }
/// <summary>Gets a hash code for the current instance.</summary> /// <returns>A hash code for the current instance.</returns> public override int GetHashCode() { var combinedValue = 0; { combinedValue = HashUtilities.CombineValue(nLength.GetHashCode(), combinedValue); combinedValue = HashUtilities.CombineValue(((UIntPtr)(lpSecurityDescriptor)).GetHashCode(), combinedValue); combinedValue = HashUtilities.CombineValue(bInheritHandle.GetHashCode(), combinedValue); } return(HashUtilities.FinalizeValue(combinedValue, (sizeof(int) * 4))); }
/// <summary>Gets a hash code for the current instance.</summary> /// <returns>A hash code for the current instance.</returns> public override int GetHashCode() { var combinedValue = 0; { combinedValue = HashUtilities.CombineValue(left.GetHashCode(), combinedValue); combinedValue = HashUtilities.CombineValue(top.GetHashCode(), combinedValue); combinedValue = HashUtilities.CombineValue(right.GetHashCode(), combinedValue); combinedValue = HashUtilities.CombineValue(bottom.GetHashCode(), combinedValue); } return(HashUtilities.FinalizeValue(combinedValue, (sizeof(int) * 4))); }