private static void AddValue <TValue>(IValueMap map, TValue?v) where TValue : struct
 {
     if (v.HasValue)
     {
         map.Add(v.Value);
     }
 }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the ShapeColorMap class.
        /// </summary>
        /// <param name="source">Color map source.</param>
        public ShapeColorMap(IValueMap source)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            this.valueSource = source;
        }
Пример #3
0
        /// <summary>
        /// Initializes a new instance of the ShapeColorMap class.
        /// </summary>
        /// <param name="source">Color map source.</param>
        public ShapeColorMap(IValueMap source)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            this.valueSource = source;
        }