Show / Hide Table of Contents

Class RuleContext

The context to evaulate a Rule.

Inheritance
Object
RuleContext
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Sepia.Globalization.Plurals
Assembly: Sepia.Globalization.dll
Syntax
public class RuleContext

Fields

| Improve this Doc View Source

f

Visible fractional digits in n, with trailing zeros.

Declaration
public decimal f
Field Value
Type Description
Decimal
| Improve this Doc View Source

i

Integer digits of n.

Declaration
public decimal i
Field Value
Type Description
Decimal
| Improve this Doc View Source

n

Absolute value of the source number.

Declaration
public decimal n
Field Value
Type Description
Decimal
| Improve this Doc View Source

t

Visible fractional digits in n, without trailing zeros.

Declaration
public decimal t
Field Value
Type Description
Decimal
| Improve this Doc View Source

v

Number of visible fraction digits in n, with trailing zeros.

Declaration
public int v
Field Value
Type Description
Int32
| Improve this Doc View Source

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 Source

Create(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.

See Also

http://unicode.org/reports/tr35/tr35-numbers.html#Operands
  • Improve this Doc
  • View Source
Back to top Generated by DocFX