/// <summary> /// Serialises the IConsoleOutputable into xaml file. /// </summary> /// <param name="toSave">The IConsoleOutputable, which has to get saveed.</param> /// <param name="file">The file, which is going to contain the serialised code.</param> public static void Save(this IConsoleOutputable toSave, string file) { using (TextWriter writer = File.CreateText(file)) { XamlServices.Save(writer, toSave); } }
public GenericPrinter() { _myMethod = OutputableFactory.Factorise <T>(); }