/// <summary> /// Gets a copy of the key's array value. Changing the values of this array does not affect the owning message. /// Call ::AsXArray(alteredArray) to set new values. /// </summary> /// <returns>Returns a *copy* of the key's array.</returns> public virtual int[] AsIntArray() { AssertTypeSafe(GribValueType.IntArray); SizeT sz = 0; GribApiProxy.GribGetSize(_handle, Key, ref sz); int[] values = new int[sz]; GribApiProxy.GribGetLongArray(_handle, Key, values, ref sz); return(values); }