public override string ToString() { var result = new StringBuilder(); foreach (var field in Fields) { if (RequiredFields.ContainsKey(field.Key)) { result.Append($", {field.Value}"); } else { result.Append($",{field.Key} {field.Value}"); } } result.Remove(0, 2); result.Append("."); return(result.ToString()); }