Skip to content

PrepayFrequencyExtensions

Filters prepay frequencies to those active on a date. The module keeps only frequencies that have a discount row in force on the requested date.

Purpose

  • Filters prepay frequencies to those active on a date.
  • The module keeps only frequencies that have a discount row in force on the requested date.

Context

  • Namespace: SAIF.Business.Policy.Rating
  • Assembly/package: SAIF.Business.Policy.Rating

Public members

Member Signature Purpose
ActiveAsOf Public Function ActiveAsOf(ByVal Target As IEnumerable(Of clsPrepayFrequency), ByVal inAsOfDate As Date) As IEnumerable(Of clsPrepayFrequency) Returns only frequencies whose discount-factor lookup succeeds on the specified date.
## Behavioral notes
- The extension checks each frequency by asking it for a discount factor on the requested date and keeps only rows that return a match.
## Constraints and usage notes
- Use this extension after loading frequencies when a workflow needs to hide options with no effective discount row on the target date.
## Sources
- Business\SAIF.Business.Policy.Rating\clsPrepayFrequencyCollection.vb