using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Factory.FactoryMethod { class XmlLog : ILog { private string xmlFile; public XmlLog(string xmlFile) { this.xmlFile = xmlFile; } public void write(string s) { //... } } }