Class RuleContext
The context to evaulate a Rule.
Inherited Members
Namespace: Sepia.Globalization.Plurals
Assembly: Sepia.Globalization.dll
Syntax
public class RuleContext
Fields
| Improve this Doc View Sourcef
Visible fractional digits in n, with trailing zeros.
Declaration
public decimal f
Field Value
Type | Description |
---|---|
Decimal |
i
Integer digits of n.
Declaration
public decimal i
Field Value
Type | Description |
---|---|
Decimal |
n
Absolute value of the source number.
Declaration
public decimal n
Field Value
Type | Description |
---|---|
Decimal |
t
Visible fractional digits in n, without trailing zeros.
Declaration
public decimal t
Field Value
Type | Description |
---|---|
Decimal |
v
Number of visible fraction digits in n, with trailing zeros.
Declaration
public int v
Field Value
Type | Description |
---|---|
Int32 |
w
Number of visible fraction digits in n, without trailing zeros.
Declaration
public int w
Field Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceCreate(Decimal)
Creates a RuleContext for a specific number.
Declaration
public static RuleContext Create(decimal value)
Parameters
Type | Name | Description |
---|---|---|
Decimal | value | The specific number. |
Returns
Type | Description |
---|---|
RuleContext | A new context. |