private static IEnumerable <DataStorage.WarewolfAtom> EvalAsListHelper(DataStorage.WarewolfRecordset recSetData) { var data = recSetData.Data.ToArray(); var listOfData = new List <DataStorage.WarewolfAtom>(); foreach (var keyValuePair in data) { if (keyValuePair.Key == "WarewolfPositionColumn") { continue; } listOfData.AddRange(keyValuePair.Value.ToList()); } return(listOfData); }
private static string WarewolfEvalResultToStringHelper(DataStorage.WarewolfRecordset recSetData) { var data = recSetData.Data.ToArray(); var listOfData = new List <string>(); foreach (var keyValuePair in data) { if (keyValuePair.Key == "WarewolfPositionColumn") { continue; } listOfData.AddRange(keyValuePair.Value.Select(WarewolfAtomToString).ToList()); } return(string.Join(",", listOfData)); }