Struct DoubleTolerance
- Namespace
- Acuit.Pinpoint.Workflows.Testing.Primitives
- Assembly
- Acuit.Pinpoint.Workflows.Testing.dll
[TypeConverter(typeof(DoubleToleranceConverter))]
public struct DoubleTolerance : IEquatable<DoubleTolerance>
- Implements
- Inherited Members
- Extension Methods
Properties
Amount
public double Amount { get; set; }
Property Value
IsPercent
public bool IsPercent { get; set; }
Property Value
Methods
AbsoluteToleranceFor(double)
public double AbsoluteToleranceFor(double value)
Parameters
valuedouble
Returns
Add(double, DoubleTolerance)
public static double Add(double left, DoubleTolerance right)
Parameters
leftdoublerightDoubleTolerance
Returns
Equals(DoubleTolerance)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DoubleTolerance other)
Parameters
otherDoubleToleranceAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Parse(string, IFormatProvider)
public static DoubleTolerance Parse(string s, IFormatProvider provider)
Parameters
sstringproviderIFormatProvider
Returns
Subtract(double, DoubleTolerance)
public static double Subtract(double left, DoubleTolerance right)
Parameters
leftdoublerightDoubleTolerance
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
ToString(IFormatProvider)
public string ToString(IFormatProvider provider)
Parameters
providerIFormatProvider
Returns
Operators
operator +(double, DoubleTolerance)
public static double operator +(double left, DoubleTolerance right)
Parameters
leftdoublerightDoubleTolerance
Returns
operator ==(DoubleTolerance, DoubleTolerance)
public static bool operator ==(DoubleTolerance left, DoubleTolerance right)
Parameters
leftDoubleTolerancerightDoubleTolerance
Returns
operator !=(DoubleTolerance, DoubleTolerance)
public static bool operator !=(DoubleTolerance left, DoubleTolerance right)
Parameters
leftDoubleTolerancerightDoubleTolerance
Returns
operator -(double, DoubleTolerance)
public static double operator -(double left, DoubleTolerance right)
Parameters
leftdoublerightDoubleTolerance