//-> File:Example.cs /// <summary> /// Execute the engine and get some results /// </summary> public override void Run() { var engine = new FixedFileEngine<Customer>(); Customer[] result = engine.ReadFile("input.txt"); foreach (var detail in result) this.Console.WriteLine(" Client: {0}, Name: {1}", detail.CustId, detail.Name); }
//-> /File public override void Run() { //-> File:Example.cs var engine = new FixedFileEngine<Customer>(); var result = engine.ReadFile("input.txt"); foreach (var detail in result) Console.WriteLine(" Client: {0}, Name: '{1}'", detail.CustId, detail.Name); //-> /File }
public override void Run() { //-> File:Example.cs var engine = new FixedFileEngine<Customer>(); Customer[] result = engine.ReadFile("input.txt"); foreach (var detail in result) { this.Console.WriteLine(" Client: {0}, Date: {1}", detail.CustId, detail.AddedDate.ToString("dd-MM-yyyy")); } //-> /File }