private static void AddValue <TValue>(IValueMap map, TValue?v) where TValue : struct
 {
     if (v.HasValue)
     {
         map.Add(v.Value);
     }
 }
Exemple #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;
        }
Exemple #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;
        }