Esempio n. 1
0
 /// <summary> </summary>
 public Unit(
     GenitiveNumber genitiveNumber,
     string nominativeSingular,
     string genitiveSingular,
     string genitivePlural)
 {
     this.genitiveNumber     = genitiveNumber;
     this.nominativeSingular = nominativeSingular;
     this.genitiveSingular   = genitiveSingular;
     this.genitivePlural     = genitivePlural;
 }
Esempio n. 2
0
                public override void ToWords(MyStringBuilder sb, uint numberUnits, GenitiveNumber kind)
                {
                    sb.Append(this.decadeName);

                    if (numberUnits == 0)
                    {
                        // После "двадцать", "тридцать" и т.д. не пишут "ноль" (единиц)
                    }
                    else
                    {
                        sb.Append(ToWordsNumbers(numberUnits, kind));
                    }
                }
Esempio n. 3
0
 public override void ToWords(MyStringBuilder sb, uint numberUnits, GenitiveNumber kind)
 {
     sb.Append(ToWordsOnDtsat[numberUnits]);
 }
Esempio n. 4
0
 public override void ToWords(MyStringBuilder sb, uint numberUnits, GenitiveNumber kind)
 {
     sb.Append(ToWordsNumbers(numberUnits, kind));
 }
Esempio n. 5
0
 public abstract void ToWords(MyStringBuilder sb, uint numberUnits, GenitiveNumber kind);
Esempio n. 6
0
 public override string ToWords(GenitiveNumber kind)
 {
     return(this.samples);
 }
Esempio n. 7
0
 public override string ToWords(GenitiveNumber kind)
 {
     return(kind.GetForm(this));
 }
Esempio n. 8
0
 public abstract string ToWords(GenitiveNumber kind);
Esempio n. 9
0
 static string ToWordsNumbers(uint number, GenitiveNumber kind)
 {
     return(Numbers[number].ToWords(kind));
 }