/// <summary> /// Sets the key's value. /// </summary> /// <param name="newValues">The new values.</param> /// <param name="force">if set to <c>true</c> [force].</param> public virtual void AsDoubleArray(double[] newValues, bool force = false) { if (force) { GribApiProxy.GribSetForceDoubleArray(_handle, Key, newValues, (SizeT)newValues.Length); } else { AssertTypeSafe(GribValueType.DoubleArray); GribApiProxy.GribSetDoubleArray(_handle, Key, newValues, (SizeT)newValues.Length); } }