/// <summary> /// Adds the specified sequence of dimensions. /// </summary> /// <param name="dimensions">The dimensions to add.</param> public AnalyticsDataOptions AddDimensions(params AnalyticsDimension[] dimensions) { if (Dimensions == null) { Dimensions = new AnalyticsDimensionCollection(); } Dimensions.AddRange(dimensions); return(this); }
/// <summary> /// A full constructor for multiple, complex dimensions /// </summary> /// <param name="value">The value of the quantity</param> /// <param name="dimensions">Pre-existing dimensions to use with this quantity</param> public Quantity(TNumber value, IEnumerable <Dimension> dimensions) : this(value) { Dimensions.AddRange(dimensions ?? new List <Dimension>()); }