I'm thinking there must be a more straightforward way to create a Dictionary (or even better a SortedDictionary) from a named item in an existing list. I am using the following, and it is working - I am just hoping to find a better way to go about it. Can anyone offer some insight?
Thanks,
Paul Hudgens
Dictionary<string, int> WellNames = newDictionary<string, int>();
for (i=0; i<HFData.Count; i++)
{
ThisWell = HFData.WellName;
if (!WellNames.ContainsKey(ThisWell)) WellNames.Add(ThisWell, 0);
}
Thanks,
Paul Hudgens
Dictionary<string, int> WellNames = newDictionary<string, int>();
for (i=0; i<HFData.Count; i++)
{
ThisWell = HFData.WellName;
if (!WellNames.ContainsKey(ThisWell)) WellNames.Add(ThisWell, 0);
}