Ejemplo n.º 1
0
        private void PrintOutCache <TType>(Dictionary <string, IList <TType> > results, string sourcePath)
        {
            var header = new List <string> {
                "Strategy"
            };

            header.AddRange(GetParameters().Select(item => item.ToString()));
            FileManager.AppendResult(Path.Combine(sourcePath, $"{Id}.csv"), header.ToArray());

            foreach (var result in results.Keys)
            {
                var parameters = new List <string>
                {
                    result
                };
                parameters.AddRange(results[result].Select(item => item.ToString()));
                FileManager.AppendResult(Path.Combine(sourcePath, $"{Id}.csv"), parameters.ToArray());
            }
        }