Beispiel #1
0
 public static string ToString(Preposition.Case obj)
 {
     switch (obj)
     {
         case Preposition.Case.Akkusativ: return "+Akk.";
         case Preposition.Case.Dativ: return "+Dat.";
         case Preposition.Case.Genitiv: return "+Gen.";
         case Preposition.Case.Undefined: return "";
         default: throw new ArgumentException("Impossible value of Preposition.Case received: " + obj);
     }
 }
Beispiel #2
0
        private void AddPreposition(StringBuilder word, StringBuilder prepositionCase, List<Lemma> list)
        {
            if(word.Length > 0 && prepositionCase.Length> 0)
            {
                Preposition item = new Preposition();
                item.Word = ToTrimmedString(word);
                item.PrepositionCase = PrepositionCaseConvert.ToCase(ToTrimmedString(prepositionCase));

                list.Add(item);
            }
        }