1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
12
using System.Runtime.InteropServices;
14
public class Settlement : IDisposable {
15
private HandleRef swigCPtr;
16
protected bool swigCMemOwn;
18
internal Settlement(IntPtr cPtr, bool cMemoryOwn) {
19
swigCMemOwn = cMemoryOwn;
20
swigCPtr = new HandleRef(this, cPtr);
23
internal static HandleRef getCPtr(Settlement obj) {
24
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
31
public virtual void Dispose() {
33
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
35
NQuantLibcPINVOKE.delete_Settlement(swigCPtr);
37
swigCPtr = new HandleRef(null, IntPtr.Zero);
38
GC.SuppressFinalize(this);
42
public Settlement() : this(NQuantLibcPINVOKE.new_Settlement(), true) {
43
if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();