public static void Main(string[] args) { LexRecord lexRec = new LexRecord(); lexRec.SetBase("123"); lexRec.SetCat("noun"); lexRec.GetCatEntry().GetNounEntry().AddVariant("irreg|123||"); lexRec.GetCatEntry().GetNounEntry().AddVariant("group(irreg|123|222|)"); Console.WriteLine("----------------"); Console.WriteLine(lexRec.GetText()); Console.WriteLine("----------------"); InflVarsAndAgreements inflVars = lexRec.GetInflVarsAndAgreements(); List <InflVar> inflValues = inflVars.GetInflValues(); for (int i = 0; i < inflValues.Count; i++) { InflVar inflectionVar = inflValues[i]; Console.WriteLine(inflectionVar.GetVar() + "|" + inflectionVar.GetCat() + "|" + inflectionVar.GetInflection() + "|" + inflectionVar.GetUnInfl() + "|" + inflectionVar.GetCit() + "|" + inflectionVar.GetType()); } }