Example #1
0
        /// <summary>
        /// Register the given sourcemap in the collection using the SourceMap's File as name.
        /// </summary>
        /// <param name="sourceMap">A <see cref="SourceMap" /></param>
        public void Register(SourceMap sourceMap)
        {
            if (string.IsNullOrEmpty(sourceMap.File))
            {
                throw new ArgumentException("sourceMap has no associated filename.");
            }

            _sourceMaps.Add(sourceMap.File !, sourceMap);
        }
Example #2
0
 /// <summary>
 /// Register the given sourcemap in the collection using the given name.
 /// </summary>
 /// <param name="name">The name to register the SourceMap as</param>
 /// <param name="sourceMap">A <see cref="SourceMap" /></param>
 public void Register(string name, SourceMap sourceMap)
 {
     _sourceMaps.Add(name, sourceMap);
 }