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
value
double
Returns
Add(double, DoubleTolerance)
public static double Add(double left, DoubleTolerance right)
Parameters
left
doubleright
DoubleTolerance
Returns
Equals(DoubleTolerance)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DoubleTolerance other)
Parameters
other
DoubleToleranceAn 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
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and 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
s
stringprovider
IFormatProvider
Returns
Subtract(double, DoubleTolerance)
public static double Subtract(double left, DoubleTolerance right)
Parameters
left
doubleright
DoubleTolerance
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
provider
IFormatProvider
Returns
Operators
operator +(double, DoubleTolerance)
public static double operator +(double left, DoubleTolerance right)
Parameters
left
doubleright
DoubleTolerance
Returns
operator ==(DoubleTolerance, DoubleTolerance)
public static bool operator ==(DoubleTolerance left, DoubleTolerance right)
Parameters
left
DoubleToleranceright
DoubleTolerance
Returns
operator !=(DoubleTolerance, DoubleTolerance)
public static bool operator !=(DoubleTolerance left, DoubleTolerance right)
Parameters
left
DoubleToleranceright
DoubleTolerance
Returns
operator -(double, DoubleTolerance)
public static double operator -(double left, DoubleTolerance right)
Parameters
left
doubleright
DoubleTolerance