Azavea.NijPredictivePolicing.ACSAlchemistLibrary.FileFormats.DesiredColumnsReader.AddIntToDict C# (CSharp) Method

AddIntToDict() private method

Helper function for ImportDesiredVariables
private AddIntToDict ( Dictionary dict, int line ) : void
dict Dictionary
line int
return void
        private void AddIntToDict(Dictionary<string, List<int>> dict, int line, params string[] keys)
        {
            if ((keys == null) || (keys.Length == 0))
                return;

            for (int i = 0; i < keys.Length; i++)
            {
                string key = keys[i];
                if (!dict.ContainsKey(key))
                    dict[key] = new List<int>();

                dict[key].Add(line);
            }
        }