public static void Serialize(TaxCollectorSettings tax, string filePath) { var serializer = new XmlSerializer(typeof(TaxCollectorSettings)); using (var stream = File.Create(filePath)) { serializer.Serialize(stream, tax); } }
public static void Serialize(TaxCollectorSettings tax, string filePath) { var serializer = new XmlSerializer(typeof(TaxCollectorSettings)); using (var stream = File.Create(filePath)) { serializer.Serialize(stream, tax); } }