Show / Hide Table of Contents

Class Substitution

A Rule action.

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

Fields

| Improve this Doc View Source

Descriptor

Another ruleset to use.

Declaration
public string Descriptor
Field Value
Type Description
String
| Improve this Doc View Source

Optionals

Actions to uses if the number is not a multiple of 10.

Declaration
public Substitution[] Optionals
Field Value
Type Description
Substitution[]
| Improve this Doc View Source

Text

Text to add to the output.

Declaration
public string Text
Field Value
Type Description
String
| Improve this Doc View Source

Token

An operation to perform.

Declaration
public string Token
Field Value
Type Description
String

Methods

| Improve this Doc View Source

Parse(String)

Parses a rule body.

Declaration
public static IEnumerable<Substitution> Parse(string s)
Parameters
Type Name Description
String s

The text representation of action(s) to perform.

Returns
Type Description
IEnumerable<Substitution>

A sequence of actions to perform.

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