Class NumberMetadata
Defines the pluralisation groupings for a language or group of languages
Inheritance
System.Object
NumberMetadata
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.Core.Globalization.NumberMetadata
Assembly: Sdl.Core.Globalization.dll
Syntax
public class NumberMetadata
Constructors
NumberMetadata()
Declaration
public NumberMetadata()
Properties
LanguageCode
The language code, or string.Empty for top-level/neutral metadata
Declaration
public string LanguageCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NumberGrammarRangeSets
One or more range definitions, each corresponding to a pluralisation form (singular, plural, 'few', ...)
Declaration
public List<NumberGrammarRangeSet> NumberGrammarRangeSets { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NumberGrammarRangeSet> |
Remarks
This is an ordered list. When finding the range ID for a value, range conditions are checked in the order in this list. This allows for languages where (say) repeated-range checks are first tried, then contiguous range or 'any other value' range specifications