Struct AnnualInterest
- Namespace
- NDepend.TechnicalDebt
- Assembly
- NDepend.API.dll
Represent the estimated cost-per-year, of an issue-not-fixed, in terms of developer time.
public readonly struct AnnualInterest : IComparable<AnnualInterest>
- Implements
- Inherited Members
- Extension Methods
Remarks
The raw value of a annual-interest estimation is based on a time-span.
An object of type IDebtFormatter can be used to fomat the annual-interest estimation into man-days, man-months or money.
A Severity level can also be obtained from a AnnualInterest an issue value, through the method IDebtFormatter.ToSeverity(AnnualInterest).
In CQLinq code rule, annual-interest values are obtained by casting explicitly a TimeSpan value to an AnnualInterest value,
or by naming a TimeSpan column AnnualInterest, in which case TimeSpan values are automatically converted to AnnualInterest values.
Also such annual-interest value obtained in a CQLinq rule context is multiplied by the DebtSettings.AnnualInterestFactor.
Constructor (1)
AnnualInterest(TimeSpan)
Build an AnnualInterest value, based on the time-span value.
public AnnualInterest(TimeSpan value)
Parameters
valueTimeSpanThe estimated annual-interest of an issue
Field (1)
Zero
AnnualInterest with zero value.
public static readonly AnnualInterest Zero
Field Value
Properties (4)
IsNegativeOverflow
Returns true if the internal ticks value of this annual-interest value reached the negative maximum autorized by TimeSpan.Ticks.
public bool IsNegativeOverflow { get; }
Property Value
Remarks
Minimum and maximum range for an AnnualInterest value is a bit more than [-29 247 years ; +29 247 years].
IsOverflow
Returns true if the internal ticks value of this annual-interest value reached the positive or negative maximum autorized by TimeSpan.Ticks.
public bool IsOverflow { get; }
Property Value
Remarks
Minimum and maximum range for an AnnualInterest value is a bit more than [-29 247 years ; +29 247 years].
IsPositiveOverflow
Returns true if the internal ticks value of this annual-interest value reached the positive maximum autorized by TimeSpan.Ticks.
public bool IsPositiveOverflow { get; }
Property Value
Remarks
Minimum and maximum range for an AnnualInterest value is a bit more than [-29 247 years ; +29 247 years].
Value
Get the raw time-span value of this estimated annual-interest value.
public TimeSpan Value { get; }
Property Value
Methods (3)
CompareTo(AnnualInterest)
Compares the current AnnualInterest instance with another AnnualInterest object and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(AnnualInterest other)
Parameters
otherAnnualInterestThe AnnualInterest object to compare with the current instance.
Returns
- int
A value less than zero if this instance is less than
other; zero if this instance is equal toother; or a value greater than zero if this instance is greater thanother.
Equals(object)
Returns true if obj is an AnnualInterest with Value equals to this.Value.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare to
Returns
GetHashCode()
Returns a hash code for this instance, from this.Value.
public override int GetHashCode()
Returns
Operators (71)
operator +(AnnualInterest, AnnualInterest)
Add x and y.
public static AnnualInterest operator +(AnnualInterest x, AnnualInterest y)
Parameters
xAnnualInterestAnnual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator +(AnnualInterest, AnnualInterest?)
Add x and y. If y is null, returns null.
public static AnnualInterest? operator +(AnnualInterest x, AnnualInterest? y)
Parameters
xAnnualInterestAnnual-interest estimation operand
yAnnualInterest?Nullable annual-interest estimation operand
Returns
operator +(AnnualInterest, TimeSpan)
Add annualInterest and timeSpan and returns the result in an AnnualInterest value.
public static AnnualInterest operator +(AnnualInterest annualInterest, TimeSpan timeSpan)
Parameters
annualInterestAnnualInterestA AnnualInterest value operand
timeSpanTimeSpanA TimeSpan value operand
Returns
operator +(AnnualInterest?, AnnualInterest)
Add x and y. If x is null, returns null.
public static AnnualInterest? operator +(AnnualInterest? x, AnnualInterest y)
Parameters
xAnnualInterest?Nullable annual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator +(TimeSpan, AnnualInterest)
Add timeSpan and annualInterest and returns the result in an AnnualInterest value.
public static AnnualInterest operator +(TimeSpan timeSpan, AnnualInterest annualInterest)
Parameters
timeSpanTimeSpanA TimeSpan value operand
annualInterestAnnualInterestA AnnualInterest value operand
Returns
operator /(AnnualInterest, double)
Divide x by quotient.
public static AnnualInterest operator /(AnnualInterest x, double quotient)
Parameters
xAnnualInterestAnnual-interest estimation operand
quotientdoubleThe quotient by which
xis divided.
Returns
Exceptions
- DivideByZeroException
This exception is thrown if quotient is zero.
operator ==(AnnualInterest, AnnualInterest)
Equality compare annualInterest and y.
public static bool operator ==(AnnualInterest annualInterest, AnnualInterest y)
Parameters
annualInterestAnnualInterestAnnual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator ==(AnnualInterest, TimeSpan)
Equality compare annualInterest and timeSpan.
public static bool operator ==(AnnualInterest annualInterest, TimeSpan timeSpan)
Parameters
annualInterestAnnualInterestA AnnualInterest value operand
timeSpanTimeSpanA TimeSpan value operand
Returns
operator ==(TimeSpan, AnnualInterest)
Equality compare annualInterest and timeSpan.
public static bool operator ==(TimeSpan timeSpan, AnnualInterest annualInterest)
Parameters
timeSpanTimeSpanA TimeSpan value operand
annualInterestAnnualInterestA AnnualInterest value operand
Returns
operator >(AnnualInterest, AnnualInterest)
Returns true if x is strictly higher than y.
public static bool operator >(AnnualInterest x, AnnualInterest y)
Parameters
xAnnualInterestAnnual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator >(AnnualInterest, AnnualInterest?)
Returns true if y is not null and x is strictly higher than y.
public static bool operator >(AnnualInterest x, AnnualInterest? y)
Parameters
xAnnualInterestAnnual-interest estimation operand
yAnnualInterest?Nullable annual-interest estimation operand
Returns
operator >(AnnualInterest, TimeSpan?)
Returns true if timeSpan is not null, and debt is strictly higher than timeSpan.
public static bool operator >(AnnualInterest debt, TimeSpan? timeSpan)
Parameters
debtAnnualInterestA nullable AnnualInterest value operand
timeSpanTimeSpan?A nullable TimeSpan value operand
Returns
operator >(AnnualInterest, TimeSpan)
Returns true if annualInterest is strictly higher than timeSpan.
public static bool operator >(AnnualInterest annualInterest, TimeSpan timeSpan)
Parameters
annualInterestAnnualInterestA AnnualInterest value operand
timeSpanTimeSpanA TimeSpan value operand
Returns
operator >(AnnualInterest?, AnnualInterest)
Returns true if x is not null and strictly higher than y.
public static bool operator >(AnnualInterest? x, AnnualInterest y)
Parameters
xAnnualInterest?Nullable annual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator >(AnnualInterest?, AnnualInterest?)
Returns true if both x and y are not null, and x value is strictly higher than y value.
public static bool operator >(AnnualInterest? x, AnnualInterest? y)
Parameters
xAnnualInterest?Nullable annual-interest estimation operand
yAnnualInterest?Nullable annual-interest estimation operand
Returns
operator >(AnnualInterest?, TimeSpan?)
Returns true if both debt and timeSpan are not null, and debt is strictly higher than timeSpan.
public static bool operator >(AnnualInterest? debt, TimeSpan? timeSpan)
Parameters
debtAnnualInterest?A nullable AnnualInterest value operand
timeSpanTimeSpan?A nullable TimeSpan value operand
Returns
operator >(AnnualInterest?, TimeSpan)
Returns true if debt is not null and strictly higher than timeSpan.
public static bool operator >(AnnualInterest? debt, TimeSpan timeSpan)
Parameters
debtAnnualInterest?A nullable AnnualInterest value operand
timeSpanTimeSpanA TimeSpan value operand
Returns
operator >(TimeSpan?, AnnualInterest)
Returns true if timeSpan is not null, and timeSpan is strictly higher than debt.
public static bool operator >(TimeSpan? timeSpan, AnnualInterest debt)
Parameters
timeSpanTimeSpan?A nullable TimeSpan value operand
debtAnnualInterestA nullable AnnualInterest value operand
Returns
operator >(TimeSpan?, AnnualInterest?)
Returns true if both debt and timeSpan are not null, and timeSpan is strictly higher than debt.
public static bool operator >(TimeSpan? timeSpan, AnnualInterest? debt)
Parameters
timeSpanTimeSpan?A nullable TimeSpan value operand
debtAnnualInterest?A nullable AnnualInterest value operand
Returns
operator >(TimeSpan, AnnualInterest)
Returns true if timeSpan is strictly higher than annualInterest.
public static bool operator >(TimeSpan timeSpan, AnnualInterest annualInterest)
Parameters
timeSpanTimeSpanA TimeSpan value operand
annualInterestAnnualInterestA AnnualInterest value operand
Returns
operator >(TimeSpan, AnnualInterest?)
Returns true if debt is not null and timeSpan is strictly higher than debt.
public static bool operator >(TimeSpan timeSpan, AnnualInterest? debt)
Parameters
timeSpanTimeSpanA TimeSpan value operand
debtAnnualInterest?A nullable AnnualInterest value operand
Returns
operator >=(AnnualInterest, AnnualInterest)
Returns true if x is higher than or equals to y.
public static bool operator >=(AnnualInterest x, AnnualInterest y)
Parameters
xAnnualInterestAnnual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator >=(AnnualInterest, AnnualInterest?)
Returns true if y is not null and x is higher than or equal to y.
public static bool operator >=(AnnualInterest x, AnnualInterest? y)
Parameters
xAnnualInterestAnnual-interest estimation operand
yAnnualInterest?Nullable annual-interest estimation operand
Returns
operator >=(AnnualInterest, TimeSpan?)
Returns true if timeSpan is not null, and debt is higher than or equal to timeSpan.
public static bool operator >=(AnnualInterest debt, TimeSpan? timeSpan)
Parameters
debtAnnualInterestA nullable AnnualInterest value operand
timeSpanTimeSpan?A nullable TimeSpan value operand
Returns
operator >=(AnnualInterest, TimeSpan)
Returns true if annualInterest is higher than or equals to timeSpan.
public static bool operator >=(AnnualInterest annualInterest, TimeSpan timeSpan)
Parameters
annualInterestAnnualInterestA AnnualInterest value operand
timeSpanTimeSpanA TimeSpan value operand
Returns
operator >=(AnnualInterest?, AnnualInterest)
Returns true if x is not null and higher than or equal to y.
public static bool operator >=(AnnualInterest? x, AnnualInterest y)
Parameters
xAnnualInterest?Nullable annual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator >=(AnnualInterest?, AnnualInterest?)
Returns true if both x and y are not null, and x value is higher than or equal to y value.
public static bool operator >=(AnnualInterest? x, AnnualInterest? y)
Parameters
xAnnualInterest?Nullable annual-interest estimation operand
yAnnualInterest?Nullable annual-interest estimation operand
Returns
operator >=(AnnualInterest?, TimeSpan?)
Returns true if both debt and timeSpan are not null, and debt is higher than or equal to timeSpan.
public static bool operator >=(AnnualInterest? debt, TimeSpan? timeSpan)
Parameters
debtAnnualInterest?A nullable AnnualInterest value operand
timeSpanTimeSpan?A nullable TimeSpan value operand
Returns
operator >=(AnnualInterest?, TimeSpan)
Returns true if debt is not null and higher than or equal to timeSpan.
public static bool operator >=(AnnualInterest? debt, TimeSpan timeSpan)
Parameters
debtAnnualInterest?A nullable AnnualInterest value operand
timeSpanTimeSpanA TimeSpan value operand
Returns
operator >=(TimeSpan?, AnnualInterest)
Returns true if timeSpan is not null, and timeSpan is higher than or equal to debt.
public static bool operator >=(TimeSpan? timeSpan, AnnualInterest debt)
Parameters
timeSpanTimeSpan?A nullable TimeSpan value operand
debtAnnualInterestA nullable AnnualInterest value operand
Returns
operator >=(TimeSpan?, AnnualInterest?)
Returns true if both debt and timeSpan are not null, and timeSpan is higher than or equal to debt.
public static bool operator >=(TimeSpan? timeSpan, AnnualInterest? debt)
Parameters
timeSpanTimeSpan?A nullable TimeSpan value operand
debtAnnualInterest?A nullable AnnualInterest value operand
Returns
operator >=(TimeSpan, AnnualInterest)
Returns true if timeSpan is higher than or equals to annualInterest.
public static bool operator >=(TimeSpan timeSpan, AnnualInterest annualInterest)
Parameters
timeSpanTimeSpanAnnual-interest estimation operand
annualInterestAnnualInterestAnnual-interest estimation operand
Returns
operator >=(TimeSpan, AnnualInterest?)
Returns true if debt is not null and timeSpan is higher than or equal to debt.
public static bool operator >=(TimeSpan timeSpan, AnnualInterest? debt)
Parameters
timeSpanTimeSpanA TimeSpan value operand
debtAnnualInterest?A nullable AnnualInterest value operand
Returns
implicit operator TimeSpan(AnnualInterest)
A AnnualInterest value can be implicitly converted to a TimeSpan value.
public static implicit operator TimeSpan(AnnualInterest annualInterest)
Parameters
annualInterestAnnualInterestThe AnnualInterest value to convert to an TimeSpan value.
Returns
implicit operator AnnualInterest(TimeSpan?)
A nullable TimeSpan value can be implicitly converted to a AnnualInterest value.
public static implicit operator AnnualInterest(TimeSpan? nullableTimeSpan)
Parameters
nullableTimeSpanTimeSpan?The nullable TimeSpan value to convert to a AnnualInterest value.
Returns
Remarks
In case of nullnullableTimeSpan, the value AnnualInterest.Zero is built.
implicit operator AnnualInterest(TimeSpan)
A TimeSpan value can be implicitly converted to an AnnualInterest value.
public static implicit operator AnnualInterest(TimeSpan timeSpan)
Parameters
timeSpanTimeSpanThe TimeSpan value to convert to an AnnualInterest value.
Returns
operator !=(AnnualInterest, AnnualInterest)
Inequality compare x and y.
public static bool operator !=(AnnualInterest x, AnnualInterest y)
Parameters
xAnnualInterestAnnual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator !=(AnnualInterest, TimeSpan)
Inequality compare annualInterest and timeSpan.
public static bool operator !=(AnnualInterest annualInterest, TimeSpan timeSpan)
Parameters
annualInterestAnnualInterestA AnnualInterest value operand
timeSpanTimeSpanA TimeSpan value operand
Returns
operator !=(TimeSpan, AnnualInterest)
Inequality compare annualInterest and timeSpan.
public static bool operator !=(TimeSpan timeSpan, AnnualInterest annualInterest)
Parameters
timeSpanTimeSpanA TimeSpan value operand
annualInterestAnnualInterestA AnnualInterest value operand
Returns
operator <(AnnualInterest, AnnualInterest)
Returns true if x is strictly lower than y.
public static bool operator <(AnnualInterest x, AnnualInterest y)
Parameters
xAnnualInterestAnnual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator <(AnnualInterest, AnnualInterest?)
Returns true if y is not null and x is strictly lower than y.
public static bool operator <(AnnualInterest x, AnnualInterest? y)
Parameters
xAnnualInterestAnnual-interest estimation operand
yAnnualInterest?Nullable annual-interest estimation operand
Returns
operator <(AnnualInterest, TimeSpan?)
Returns true if timeSpan is not null, and debt is strictly lower than timeSpan.
public static bool operator <(AnnualInterest debt, TimeSpan? timeSpan)
Parameters
debtAnnualInterestA nullable AnnualInterest value operand
timeSpanTimeSpan?A nullable TimeSpan value operand
Returns
operator <(AnnualInterest, TimeSpan)
Returns true if annualInterest is strictly lower than timeSpan.
public static bool operator <(AnnualInterest annualInterest, TimeSpan timeSpan)
Parameters
annualInterestAnnualInterestA AnnualInterest value operand
timeSpanTimeSpanA TimeSpan value operand
Returns
operator <(AnnualInterest?, AnnualInterest)
Returns true if x is not null and strictly lower than y.
public static bool operator <(AnnualInterest? x, AnnualInterest y)
Parameters
xAnnualInterest?Nullable annual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator <(AnnualInterest?, AnnualInterest?)
Returns true if both x and y are not null, and x value is strictly lower than y value.
public static bool operator <(AnnualInterest? x, AnnualInterest? y)
Parameters
xAnnualInterest?Nullable annual-interest estimation operand
yAnnualInterest?Nullable annual-interest estimation operand
Returns
operator <(AnnualInterest?, TimeSpan?)
Returns true if both debt and timeSpan are not null, and debt is strictly lower than timeSpan.
public static bool operator <(AnnualInterest? debt, TimeSpan? timeSpan)
Parameters
debtAnnualInterest?A nullable AnnualInterest value operand
timeSpanTimeSpan?A nullable TimeSpan value operand
Returns
operator <(AnnualInterest?, TimeSpan)
Returns true if debt is not null and strictly lower than timeSpan.
public static bool operator <(AnnualInterest? debt, TimeSpan timeSpan)
Parameters
debtAnnualInterest?A nullable AnnualInterest value operand
timeSpanTimeSpanA TimeSpan value operand
Returns
operator <(TimeSpan?, AnnualInterest)
Returns true if timeSpan is not null, and timeSpan is strictly lower than debt.
public static bool operator <(TimeSpan? timeSpan, AnnualInterest debt)
Parameters
timeSpanTimeSpan?A nullable TimeSpan value operand
debtAnnualInterestA nullable AnnualInterest value operand
Returns
operator <(TimeSpan?, AnnualInterest?)
Returns true if both debt and timeSpan are not null, and timeSpan is strictly lower than debt.
public static bool operator <(TimeSpan? timeSpan, AnnualInterest? debt)
Parameters
timeSpanTimeSpan?A nullable TimeSpan value operand
debtAnnualInterest?A nullable AnnualInterest value operand
Returns
operator <(TimeSpan, AnnualInterest)
Returns true if timeSpan is strictly lower than annualInterest.
public static bool operator <(TimeSpan timeSpan, AnnualInterest annualInterest)
Parameters
timeSpanTimeSpanAnnual-interest estimation operand
annualInterestAnnualInterestAnnual-interest estimation operand
Returns
operator <(TimeSpan, AnnualInterest?)
Returns true if debt is not null and timeSpan is strictly lower than debt.
public static bool operator <(TimeSpan timeSpan, AnnualInterest? debt)
Parameters
timeSpanTimeSpanA TimeSpan value operand
debtAnnualInterest?A nullable AnnualInterest value operand
Returns
operator <=(AnnualInterest, AnnualInterest)
Returns true if x is lower than or equals to y.
public static bool operator <=(AnnualInterest x, AnnualInterest y)
Parameters
xAnnualInterestAnnual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator <=(AnnualInterest, AnnualInterest?)
Returns true if y is not null and x is lower than or equal to y.
public static bool operator <=(AnnualInterest x, AnnualInterest? y)
Parameters
xAnnualInterestAnnual-interest estimation operand
yAnnualInterest?Nullable annual-interest estimation operand
Returns
operator <=(AnnualInterest, TimeSpan?)
Returns true if timeSpan is not null, and debt is lower than or equal to timeSpan.
public static bool operator <=(AnnualInterest debt, TimeSpan? timeSpan)
Parameters
debtAnnualInterestA nullable AnnualInterest value operand
timeSpanTimeSpan?A nullable TimeSpan value operand
Returns
operator <=(AnnualInterest, TimeSpan)
Returns true if annualInterest is lower than or equals to timeSpan.
public static bool operator <=(AnnualInterest annualInterest, TimeSpan timeSpan)
Parameters
annualInterestAnnualInterestA AnnualInterest value operand
timeSpanTimeSpanA TimeSpan value operand
Returns
operator <=(AnnualInterest?, AnnualInterest)
Returns true if x is not null and lower than or equal to y.
public static bool operator <=(AnnualInterest? x, AnnualInterest y)
Parameters
xAnnualInterest?Nullable annual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator <=(AnnualInterest?, AnnualInterest?)
Returns true if both x and y are not null, and x value is lower than or equal to y value.
public static bool operator <=(AnnualInterest? x, AnnualInterest? y)
Parameters
xAnnualInterest?Nullable annual-interest estimation operand
yAnnualInterest?Nullable annual-interest estimation operand
Returns
operator <=(AnnualInterest?, TimeSpan?)
Returns true if both debt and timeSpan are not null, and debt is lower than or equal to timeSpan.
public static bool operator <=(AnnualInterest? debt, TimeSpan? timeSpan)
Parameters
debtAnnualInterest?A nullable AnnualInterest value operand
timeSpanTimeSpan?A nullable TimeSpan value operand
Returns
operator <=(AnnualInterest?, TimeSpan)
Returns true if debt is not null and lower than or equal to timeSpan.
public static bool operator <=(AnnualInterest? debt, TimeSpan timeSpan)
Parameters
debtAnnualInterest?A nullable AnnualInterest value operand
timeSpanTimeSpanA TimeSpan value operand
Returns
operator <=(TimeSpan?, AnnualInterest)
Returns true if timeSpan is not null, and timeSpan is lower than or equal to debt.
public static bool operator <=(TimeSpan? timeSpan, AnnualInterest debt)
Parameters
timeSpanTimeSpan?A nullable TimeSpan value operand
debtAnnualInterestA nullable AnnualInterest value operand
Returns
operator <=(TimeSpan?, AnnualInterest?)
Returns true if both debt and timeSpan are not null, and timeSpan is lower than or equal to debt.
public static bool operator <=(TimeSpan? timeSpan, AnnualInterest? debt)
Parameters
timeSpanTimeSpan?A nullable TimeSpan value operand
debtAnnualInterest?A nullable AnnualInterest value operand
Returns
operator <=(TimeSpan, AnnualInterest)
Returns true if timeSpan is lower than or equals to annualInterest.
public static bool operator <=(TimeSpan timeSpan, AnnualInterest annualInterest)
Parameters
timeSpanTimeSpanAnnual-interest estimation operand
annualInterestAnnualInterestAnnual-interest estimation operand
Returns
operator <=(TimeSpan, AnnualInterest?)
Returns true if debt is not null and timeSpan is lower than or equal to debt.
public static bool operator <=(TimeSpan timeSpan, AnnualInterest? debt)
Parameters
timeSpanTimeSpanA TimeSpan value operand
debtAnnualInterest?A nullable AnnualInterest value operand
Returns
operator *(AnnualInterest, double)
Multiply x by factor.
public static AnnualInterest operator *(AnnualInterest x, double factor)
Parameters
xAnnualInterestAnnual-interest estimation operand
factordoubleThe factor by which
xis multiplied.
Returns
operator *(double, AnnualInterest)
Multiply x by factor.
public static AnnualInterest operator *(double factor, AnnualInterest x)
Parameters
factordoubleThe factor by which
xis multiplied.xAnnualInterestAnnual-interest estimation operand
Returns
operator -(AnnualInterest, AnnualInterest)
Substract y to x.
public static AnnualInterest operator -(AnnualInterest x, AnnualInterest y)
Parameters
xAnnualInterestAnnual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator -(AnnualInterest, AnnualInterest?)
Substract x to y. If y is null, returns null.
public static AnnualInterest? operator -(AnnualInterest x, AnnualInterest? y)
Parameters
xAnnualInterestAnnual-interest estimation operand
yAnnualInterest?Nullable annual-interest estimation operand
Returns
operator -(AnnualInterest, TimeSpan)
Substract annualInterest to timeSpan and returns the result in an AnnualInterest value.
public static AnnualInterest operator -(AnnualInterest annualInterest, TimeSpan timeSpan)
Parameters
annualInterestAnnualInterestA AnnualInterest value operand
timeSpanTimeSpanA TimeSpan value operand
Returns
operator -(AnnualInterest?, AnnualInterest)
Substract x to y. If x is null, returns null.
public static AnnualInterest? operator -(AnnualInterest? x, AnnualInterest y)
Parameters
xAnnualInterest?Nullable annual-interest estimation operand
yAnnualInterestAnnual-interest estimation operand
Returns
operator -(TimeSpan, AnnualInterest)
Substract timeSpan to annualInterest and returns the result in an AnnualInterest value.
public static AnnualInterest operator -(TimeSpan timeSpan, AnnualInterest annualInterest)
Parameters
timeSpanTimeSpanA TimeSpan value operand
annualInterestAnnualInterestA AnnualInterest value operand
Returns
operator -(AnnualInterest)
Negate x.
public static AnnualInterest operator -(AnnualInterest x)
Parameters
xAnnualInterestAnnual-interest estimation operand to negate.