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