Class NationalInsuranceThresholdExtensions
- Namespace
- Payetools.NationalInsurance.Model
- Assembly
- Payetools.NationalInsurance.dll
Extension methods for instances of NiThresholdType.
public static class NationalInsuranceThresholdExtensions
- Inheritance
-
NationalInsuranceThresholdExtensions
- Inherited Members
Methods
GetFullName(NiThresholdType)
Gets the full name of the threshold as a string.
public static string GetFullName(this NiThresholdType thresholdType)
Parameters
thresholdType
NiThresholdTypeNiThresholdType value.
Returns
- string
Full name of the threshold as a string, e.g., "Lower Earnings Limit".
Exceptions
- ArgumentException
Thrown if the NiThresholdType value supplied is unrecognised.
GetIndex(NiThresholdType)
Gets the zero-based index of the supplied NiThresholdType. Used when retrieving thresholds from arrays or lists who elements are ordered the same as this enum.
public static int GetIndex(this NiThresholdType threshold)
Parameters
threshold
NiThresholdTypeNiThresholdType value.
Returns
- int
Zero-based index of this NiThresholdType.