/// <summary> </summary> public Unit( GenitiveNumber genitiveNumber, string nominativeSingular, string genitiveSingular, string genitivePlural) { this.genitiveNumber = genitiveNumber; this.nominativeSingular = nominativeSingular; this.genitiveSingular = genitiveSingular; this.genitivePlural = genitivePlural; }
public override void ToWords(MyStringBuilder sb, uint numberUnits, GenitiveNumber kind) { sb.Append(this.decadeName); if (numberUnits == 0) { // После "двадцать", "тридцать" и т.д. не пишут "ноль" (единиц) } else { sb.Append(ToWordsNumbers(numberUnits, kind)); } }
public override void ToWords(MyStringBuilder sb, uint numberUnits, GenitiveNumber kind) { sb.Append(ToWordsOnDtsat[numberUnits]); }
public override void ToWords(MyStringBuilder sb, uint numberUnits, GenitiveNumber kind) { sb.Append(ToWordsNumbers(numberUnits, kind)); }
public abstract void ToWords(MyStringBuilder sb, uint numberUnits, GenitiveNumber kind);
public override string ToWords(GenitiveNumber kind) { return(this.samples); }
public override string ToWords(GenitiveNumber kind) { return(kind.GetForm(this)); }
public abstract string ToWords(GenitiveNumber kind);
static string ToWordsNumbers(uint number, GenitiveNumber kind) { return(Numbers[number].ToWords(kind)); }