Class Substitution
A Rule action.
Inherited Members
Namespace: Sepia.Globalization.Numbers.Rules
Assembly: Sepia.Globalization.dll
Syntax
public class Substitution
Fields
| Improve this Doc View SourceDescriptor
Another ruleset to use.
Declaration
public string Descriptor
Field Value
Type | Description |
---|---|
String |
Optionals
Actions to uses if the number is not a multiple of 10.
Declaration
public Substitution[] Optionals
Field Value
Type | Description |
---|---|
Substitution[] |
Text
Text to add to the output.
Declaration
public string Text
Field Value
Type | Description |
---|---|
String |
Token
An operation to perform.
Declaration
public string Token
Field Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceParse(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. |