public static extern IntPtr vector_double_new2(IntPtr size); [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)]
/// <summary> /// /// </summary> /// <param name="size"></param> public VectorOfDouble(int size) { if (size < 0) { throw new ArgumentOutOfRangeException(nameof(size)); } ptr = NativeMethods.vector_double_new2(new IntPtr(size)); }