Table of Contents

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

value TimeSpan

The estimated annual-interest of an issue

Field (1)

Zero

AnnualInterest with zero value.

public static readonly AnnualInterest Zero

Field Value

AnnualInterest

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

bool

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

bool

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

bool

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

TimeSpan

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

other AnnualInterest

The 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 to other; or a value greater than zero if this instance is greater than other.

Equals(object)

Returns true if obj is an AnnualInterest with Value equals to this.Value.

public override bool Equals(object obj)

Parameters

obj object

The object to compare to

Returns

bool

GetHashCode()

Returns a hash code for this instance, from this.Value.

public override int GetHashCode()

Returns

int

Operators (71)

operator +(AnnualInterest, AnnualInterest)

Add x and y.

public static AnnualInterest operator +(AnnualInterest x, AnnualInterest y)

Parameters

x AnnualInterest

Annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

AnnualInterest

operator +(AnnualInterest, AnnualInterest?)

Add x and y. If y is null, returns null.

public static AnnualInterest? operator +(AnnualInterest x, AnnualInterest? y)

Parameters

x AnnualInterest

Annual-interest estimation operand

y AnnualInterest?

Nullable annual-interest estimation operand

Returns

AnnualInterest?

operator +(AnnualInterest, TimeSpan)

Add annualInterest and timeSpan and returns the result in an AnnualInterest value.

public static AnnualInterest operator +(AnnualInterest annualInterest, TimeSpan timeSpan)

Parameters

annualInterest AnnualInterest

A AnnualInterest value operand

timeSpan TimeSpan

A TimeSpan value operand

Returns

AnnualInterest

operator +(AnnualInterest?, AnnualInterest)

Add x and y. If x is null, returns null.

public static AnnualInterest? operator +(AnnualInterest? x, AnnualInterest y)

Parameters

x AnnualInterest?

Nullable annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

AnnualInterest?

operator +(TimeSpan, AnnualInterest)

Add timeSpan and annualInterest and returns the result in an AnnualInterest value.

public static AnnualInterest operator +(TimeSpan timeSpan, AnnualInterest annualInterest)

Parameters

timeSpan TimeSpan

A TimeSpan value operand

annualInterest AnnualInterest

A AnnualInterest value operand

Returns

AnnualInterest

operator /(AnnualInterest, double)

Divide x by quotient.

public static AnnualInterest operator /(AnnualInterest x, double quotient)

Parameters

x AnnualInterest

Annual-interest estimation operand

quotient double

The quotient by which x is divided.

Returns

AnnualInterest

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

annualInterest AnnualInterest

Annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

bool

operator ==(AnnualInterest, TimeSpan)

Equality compare annualInterest and timeSpan.

public static bool operator ==(AnnualInterest annualInterest, TimeSpan timeSpan)

Parameters

annualInterest AnnualInterest

A AnnualInterest value operand

timeSpan TimeSpan

A TimeSpan value operand

Returns

bool

operator ==(TimeSpan, AnnualInterest)

Equality compare annualInterest and timeSpan.

public static bool operator ==(TimeSpan timeSpan, AnnualInterest annualInterest)

Parameters

timeSpan TimeSpan

A TimeSpan value operand

annualInterest AnnualInterest

A AnnualInterest value operand

Returns

bool

operator >(AnnualInterest, AnnualInterest)

Returns true if x is strictly higher than y.

public static bool operator >(AnnualInterest x, AnnualInterest y)

Parameters

x AnnualInterest

Annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

bool

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

x AnnualInterest

Annual-interest estimation operand

y AnnualInterest?

Nullable annual-interest estimation operand

Returns

bool

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

debt AnnualInterest

A nullable AnnualInterest value operand

timeSpan TimeSpan?

A nullable TimeSpan value operand

Returns

bool

operator >(AnnualInterest, TimeSpan)

Returns true if annualInterest is strictly higher than timeSpan.

public static bool operator >(AnnualInterest annualInterest, TimeSpan timeSpan)

Parameters

annualInterest AnnualInterest

A AnnualInterest value operand

timeSpan TimeSpan

A TimeSpan value operand

Returns

bool

operator >(AnnualInterest?, AnnualInterest)

Returns true if x is not null and strictly higher than y.

public static bool operator >(AnnualInterest? x, AnnualInterest y)

Parameters

x AnnualInterest?

Nullable annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

bool

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

x AnnualInterest?

Nullable annual-interest estimation operand

y AnnualInterest?

Nullable annual-interest estimation operand

Returns

bool

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

debt AnnualInterest?

A nullable AnnualInterest value operand

timeSpan TimeSpan?

A nullable TimeSpan value operand

Returns

bool

operator >(AnnualInterest?, TimeSpan)

Returns true if debt is not null and strictly higher than timeSpan.

public static bool operator >(AnnualInterest? debt, TimeSpan timeSpan)

Parameters

debt AnnualInterest?

A nullable AnnualInterest value operand

timeSpan TimeSpan

A TimeSpan value operand

Returns

bool

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

timeSpan TimeSpan?

A nullable TimeSpan value operand

debt AnnualInterest

A nullable AnnualInterest value operand

Returns

bool

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

timeSpan TimeSpan?

A nullable TimeSpan value operand

debt AnnualInterest?

A nullable AnnualInterest value operand

Returns

bool

operator >(TimeSpan, AnnualInterest)

Returns true if timeSpan is strictly higher than annualInterest.

public static bool operator >(TimeSpan timeSpan, AnnualInterest annualInterest)

Parameters

timeSpan TimeSpan

A TimeSpan value operand

annualInterest AnnualInterest

A AnnualInterest value operand

Returns

bool

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

timeSpan TimeSpan

A TimeSpan value operand

debt AnnualInterest?

A nullable AnnualInterest value operand

Returns

bool

operator >=(AnnualInterest, AnnualInterest)

Returns true if x is higher than or equals to y.

public static bool operator >=(AnnualInterest x, AnnualInterest y)

Parameters

x AnnualInterest

Annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

bool

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

x AnnualInterest

Annual-interest estimation operand

y AnnualInterest?

Nullable annual-interest estimation operand

Returns

bool

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

debt AnnualInterest

A nullable AnnualInterest value operand

timeSpan TimeSpan?

A nullable TimeSpan value operand

Returns

bool

operator >=(AnnualInterest, TimeSpan)

Returns true if annualInterest is higher than or equals to timeSpan.

public static bool operator >=(AnnualInterest annualInterest, TimeSpan timeSpan)

Parameters

annualInterest AnnualInterest

A AnnualInterest value operand

timeSpan TimeSpan

A TimeSpan value operand

Returns

bool

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

x AnnualInterest?

Nullable annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

bool

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

x AnnualInterest?

Nullable annual-interest estimation operand

y AnnualInterest?

Nullable annual-interest estimation operand

Returns

bool

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

debt AnnualInterest?

A nullable AnnualInterest value operand

timeSpan TimeSpan?

A nullable TimeSpan value operand

Returns

bool

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

debt AnnualInterest?

A nullable AnnualInterest value operand

timeSpan TimeSpan

A TimeSpan value operand

Returns

bool

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

timeSpan TimeSpan?

A nullable TimeSpan value operand

debt AnnualInterest

A nullable AnnualInterest value operand

Returns

bool

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

timeSpan TimeSpan?

A nullable TimeSpan value operand

debt AnnualInterest?

A nullable AnnualInterest value operand

Returns

bool

operator >=(TimeSpan, AnnualInterest)

Returns true if timeSpan is higher than or equals to annualInterest.

public static bool operator >=(TimeSpan timeSpan, AnnualInterest annualInterest)

Parameters

timeSpan TimeSpan

Annual-interest estimation operand

annualInterest AnnualInterest

Annual-interest estimation operand

Returns

bool

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

timeSpan TimeSpan

A TimeSpan value operand

debt AnnualInterest?

A nullable AnnualInterest value operand

Returns

bool

implicit operator TimeSpan(AnnualInterest)

A AnnualInterest value can be implicitly converted to a TimeSpan value.

public static implicit operator TimeSpan(AnnualInterest annualInterest)

Parameters

annualInterest AnnualInterest

The AnnualInterest value to convert to an TimeSpan value.

Returns

TimeSpan

implicit operator AnnualInterest(TimeSpan?)

A nullable TimeSpan value can be implicitly converted to a AnnualInterest value.

public static implicit operator AnnualInterest(TimeSpan? nullableTimeSpan)

Parameters

nullableTimeSpan TimeSpan?

The nullable TimeSpan value to convert to a AnnualInterest value.

Returns

AnnualInterest

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

timeSpan TimeSpan

The TimeSpan value to convert to an AnnualInterest value.

Returns

AnnualInterest

operator !=(AnnualInterest, AnnualInterest)

Inequality compare x and y.

public static bool operator !=(AnnualInterest x, AnnualInterest y)

Parameters

x AnnualInterest

Annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

bool

operator !=(AnnualInterest, TimeSpan)

Inequality compare annualInterest and timeSpan.

public static bool operator !=(AnnualInterest annualInterest, TimeSpan timeSpan)

Parameters

annualInterest AnnualInterest

A AnnualInterest value operand

timeSpan TimeSpan

A TimeSpan value operand

Returns

bool

operator !=(TimeSpan, AnnualInterest)

Inequality compare annualInterest and timeSpan.

public static bool operator !=(TimeSpan timeSpan, AnnualInterest annualInterest)

Parameters

timeSpan TimeSpan

A TimeSpan value operand

annualInterest AnnualInterest

A AnnualInterest value operand

Returns

bool

operator <(AnnualInterest, AnnualInterest)

Returns true if x is strictly lower than y.

public static bool operator <(AnnualInterest x, AnnualInterest y)

Parameters

x AnnualInterest

Annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

bool

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

x AnnualInterest

Annual-interest estimation operand

y AnnualInterest?

Nullable annual-interest estimation operand

Returns

bool

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

debt AnnualInterest

A nullable AnnualInterest value operand

timeSpan TimeSpan?

A nullable TimeSpan value operand

Returns

bool

operator <(AnnualInterest, TimeSpan)

Returns true if annualInterest is strictly lower than timeSpan.

public static bool operator <(AnnualInterest annualInterest, TimeSpan timeSpan)

Parameters

annualInterest AnnualInterest

A AnnualInterest value operand

timeSpan TimeSpan

A TimeSpan value operand

Returns

bool

operator <(AnnualInterest?, AnnualInterest)

Returns true if x is not null and strictly lower than y.

public static bool operator <(AnnualInterest? x, AnnualInterest y)

Parameters

x AnnualInterest?

Nullable annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

bool

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

x AnnualInterest?

Nullable annual-interest estimation operand

y AnnualInterest?

Nullable annual-interest estimation operand

Returns

bool

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

debt AnnualInterest?

A nullable AnnualInterest value operand

timeSpan TimeSpan?

A nullable TimeSpan value operand

Returns

bool

operator <(AnnualInterest?, TimeSpan)

Returns true if debt is not null and strictly lower than timeSpan.

public static bool operator <(AnnualInterest? debt, TimeSpan timeSpan)

Parameters

debt AnnualInterest?

A nullable AnnualInterest value operand

timeSpan TimeSpan

A TimeSpan value operand

Returns

bool

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

timeSpan TimeSpan?

A nullable TimeSpan value operand

debt AnnualInterest

A nullable AnnualInterest value operand

Returns

bool

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

timeSpan TimeSpan?

A nullable TimeSpan value operand

debt AnnualInterest?

A nullable AnnualInterest value operand

Returns

bool

operator <(TimeSpan, AnnualInterest)

Returns true if timeSpan is strictly lower than annualInterest.

public static bool operator <(TimeSpan timeSpan, AnnualInterest annualInterest)

Parameters

timeSpan TimeSpan

Annual-interest estimation operand

annualInterest AnnualInterest

Annual-interest estimation operand

Returns

bool

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

timeSpan TimeSpan

A TimeSpan value operand

debt AnnualInterest?

A nullable AnnualInterest value operand

Returns

bool

operator <=(AnnualInterest, AnnualInterest)

Returns true if x is lower than or equals to y.

public static bool operator <=(AnnualInterest x, AnnualInterest y)

Parameters

x AnnualInterest

Annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

bool

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

x AnnualInterest

Annual-interest estimation operand

y AnnualInterest?

Nullable annual-interest estimation operand

Returns

bool

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

debt AnnualInterest

A nullable AnnualInterest value operand

timeSpan TimeSpan?

A nullable TimeSpan value operand

Returns

bool

operator <=(AnnualInterest, TimeSpan)

Returns true if annualInterest is lower than or equals to timeSpan.

public static bool operator <=(AnnualInterest annualInterest, TimeSpan timeSpan)

Parameters

annualInterest AnnualInterest

A AnnualInterest value operand

timeSpan TimeSpan

A TimeSpan value operand

Returns

bool

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

x AnnualInterest?

Nullable annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

bool

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

x AnnualInterest?

Nullable annual-interest estimation operand

y AnnualInterest?

Nullable annual-interest estimation operand

Returns

bool

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

debt AnnualInterest?

A nullable AnnualInterest value operand

timeSpan TimeSpan?

A nullable TimeSpan value operand

Returns

bool

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

debt AnnualInterest?

A nullable AnnualInterest value operand

timeSpan TimeSpan

A TimeSpan value operand

Returns

bool

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

timeSpan TimeSpan?

A nullable TimeSpan value operand

debt AnnualInterest

A nullable AnnualInterest value operand

Returns

bool

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

timeSpan TimeSpan?

A nullable TimeSpan value operand

debt AnnualInterest?

A nullable AnnualInterest value operand

Returns

bool

operator <=(TimeSpan, AnnualInterest)

Returns true if timeSpan is lower than or equals to annualInterest.

public static bool operator <=(TimeSpan timeSpan, AnnualInterest annualInterest)

Parameters

timeSpan TimeSpan

Annual-interest estimation operand

annualInterest AnnualInterest

Annual-interest estimation operand

Returns

bool

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

timeSpan TimeSpan

A TimeSpan value operand

debt AnnualInterest?

A nullable AnnualInterest value operand

Returns

bool

operator *(AnnualInterest, double)

Multiply x by factor.

public static AnnualInterest operator *(AnnualInterest x, double factor)

Parameters

x AnnualInterest

Annual-interest estimation operand

factor double

The factor by which x is multiplied.

Returns

AnnualInterest

operator *(double, AnnualInterest)

Multiply x by factor.

public static AnnualInterest operator *(double factor, AnnualInterest x)

Parameters

factor double

The factor by which x is multiplied.

x AnnualInterest

Annual-interest estimation operand

Returns

AnnualInterest

operator -(AnnualInterest, AnnualInterest)

Substract y to x.

public static AnnualInterest operator -(AnnualInterest x, AnnualInterest y)

Parameters

x AnnualInterest

Annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

AnnualInterest

operator -(AnnualInterest, AnnualInterest?)

Substract x to y. If y is null, returns null.

public static AnnualInterest? operator -(AnnualInterest x, AnnualInterest? y)

Parameters

x AnnualInterest

Annual-interest estimation operand

y AnnualInterest?

Nullable annual-interest estimation operand

Returns

AnnualInterest?

operator -(AnnualInterest, TimeSpan)

Substract annualInterest to timeSpan and returns the result in an AnnualInterest value.

public static AnnualInterest operator -(AnnualInterest annualInterest, TimeSpan timeSpan)

Parameters

annualInterest AnnualInterest

A AnnualInterest value operand

timeSpan TimeSpan

A TimeSpan value operand

Returns

AnnualInterest

operator -(AnnualInterest?, AnnualInterest)

Substract x to y. If x is null, returns null.

public static AnnualInterest? operator -(AnnualInterest? x, AnnualInterest y)

Parameters

x AnnualInterest?

Nullable annual-interest estimation operand

y AnnualInterest

Annual-interest estimation operand

Returns

AnnualInterest?

operator -(TimeSpan, AnnualInterest)

Substract timeSpan to annualInterest and returns the result in an AnnualInterest value.

public static AnnualInterest operator -(TimeSpan timeSpan, AnnualInterest annualInterest)

Parameters

timeSpan TimeSpan

A TimeSpan value operand

annualInterest AnnualInterest

A AnnualInterest value operand

Returns

AnnualInterest

operator -(AnnualInterest)

Negate x.

public static AnnualInterest operator -(AnnualInterest x)

Parameters

x AnnualInterest

Annual-interest estimation operand to negate.

Returns

AnnualInterest