示例#1
0
 public Measure(
     GenderAndCount genderAndCount,
     string nominativeUnit,
     string genderUnit,
     string genderPlural)
 {
     this._genderAndCount = genderAndCount;
     this._nominativeUnit = nominativeUnit;
     this._genderUnit     = genderUnit;
     this._genderPlural   = genderPlural;
 }
示例#2
0
        public override void Formulation(ToWordBuilder toWordBuilder, uint numberOfUnits, GenderAndCount gender)
        {
            toWordBuilder.Append(this._name);

            if (numberOfUnits == 0)
            {
            }
            //
            else
            {
                toWordBuilder.Append(FormulationOfNumber(numberOfUnits, gender));
            }
        }
示例#3
0
 protected virtual string FormulationOfNumber(uint number, GenderAndCount gender)
 {
     return(Context.Numbers[number].Formulation(gender));
 }
示例#4
0
 public abstract void Formulation(ToWordBuilder toWordBuilder, uint numberOfUnits, GenderAndCount gender);
示例#5
0
 public override string Formulation(GenderAndCount genderAndCount)
 {
     return(genderAndCount.GetForm(this));
 }
示例#6
0
 public override string Formulation(GenderAndCount genderAndCount)
 {
     return(_formulation);
 }
示例#7
0
 public abstract string Formulation(GenderAndCount genderAndCount);