Show / Hide Table of Contents

Interface IRule

A formatting rule.

Namespace: Sepia.Globalization.Numbers.Rules
Assembly: Sepia.Globalization.dll
Syntax
public interface IRule

Methods

| Improve this Doc View Source

Fire(RbnfContext)

Performs the rule.

Declaration
void Fire(RbnfContext context)
Parameters
Type Name Description
RbnfContext context

The context for formatting a rule based number.

| Improve this Doc View Source

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 context; otherwise, false.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX