public void Add()

in traceabilitytool/reqpathmatrix.cs [55:75]


        public void Add(string key, FilePathLineNum location)
        {
            List<FilePathLineNum> locations;

            if (this.ContainsKey(key))
            {
                // Update the existing list of file paths.
                locations = this[key];
            }
            else
            {
                // Create a new list of file paths.
                locations = new List<FilePathLineNum>();
            }

            // Add new path to the current list of file paths
            locations.Add(new FilePathLineNum(location));

            // Place the updated file paths list into the dictionary.
            this[key] = locations;
        }