1
2
int count = 0;
Dictionary<string,int> headers = line.Split(',').ToDictionary(y => y, y => count++);

C# Comma separated string to D...

by neiled, October 08, 2009 16:07, 3 refactorings, tagged with Todictionary, oneliner

Anyone up for the challenge...

Fe2f7a39fccc30dc84a2ccd79dae2bc5 Talk