public static string FormatAsXml(Employee target) { return(new XElement("Employee", new XElement("Salary", target.Salary)).ToString()); }
public static string FormatAsText(Employee target) { return($"{target.Salary}円"); }
public static string FormatAsXml(Employee target) { return(new XElement("Employee", new XElement("Salary", target.Salary)).ToString()); }
public static string FormatAsText(Employee target) { return($"{target.Salary}円"); }