private static void printNotes(SBase sb, string id) { if (!sb.isSetNotes()) { return; } Console.WriteLine("----- " + sb.getElementName() + " (" + id + ") notes -----"); Console.WriteLine(sb.getNotesString()); Console.WriteLine(); }