Interface IRule
A formatting rule.
Namespace: Sepia.Globalization.Numbers.Rules
Assembly: Sepia.Globalization.dll
Syntax
public interface IRule
Methods
| Improve this Doc View SourceFire(RbnfContext)
Performs the rule.
Declaration
void Fire(RbnfContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| RbnfContext | context | The context for formatting a rule based number. |
Matches(RbnfContext)
Determines if the rule matches the context.
Declaration
bool Matches(RbnfContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| RbnfContext | context | The context for formatting a rule based number. |
Returns
| Type | Description |
|---|---|
| Boolean | true if the rule matches the |