Class IntNumberGrammarRange
Defines a number range (or set of repeating ranges) for which a pluralisation form can be used
Inheritance
System.Object
IntNumberGrammarRange
Inherited Members
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 IntNumberGrammarRange
Constructors
IntNumberGrammarRange()
Declaration
public IntNumberGrammarRange()
Properties
LowerBound
The lower bound of the range (after any transformation)
Declaration
public int LowerBound { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RangeTransforms
The transformations to apply to an integer value to determine if it falls within a repeating range
Declaration
public List<RangeTransform> RangeTransforms { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<RangeTransform> |
UpperBound
The upper bound of the range (after any transformation), or null if there is no upper bound
Declaration
public int? UpperBound { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Methods
IsInRange(Int32)
Returns true if i
meets the conditions of this range specification
Declaration
public bool IsInRange(int i)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i |
Returns
Type | Description |
---|---|
System.Boolean |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()