1 | /* ---------------------------------------------------------------------------- |
---|
2 | * This file was automatically generated by SWIG (http://www.swig.org). |
---|
3 | * Version 1.3.35 |
---|
4 | * |
---|
5 | * Do not make changes to this file unless you know what you are doing--modify |
---|
6 | * the SWIG interface file instead. |
---|
7 | * ----------------------------------------------------------------------------- */ |
---|
8 | |
---|
9 | namespace be.portugal.eid { |
---|
10 | |
---|
11 | using System; |
---|
12 | using System.Runtime.InteropServices; |
---|
13 | |
---|
14 | public class PTEID_Exception : System.ApplicationException, IDisposable { |
---|
15 | private HandleRef swigCPtr; |
---|
16 | protected bool swigCMemOwn; |
---|
17 | |
---|
18 | internal PTEID_Exception(IntPtr cPtr, bool cMemoryOwn) { |
---|
19 | swigCMemOwn = cMemoryOwn; |
---|
20 | swigCPtr = new HandleRef(this, cPtr); |
---|
21 | } |
---|
22 | |
---|
23 | internal static HandleRef getCPtr(PTEID_Exception obj) { |
---|
24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; |
---|
25 | } |
---|
26 | |
---|
27 | ~PTEID_Exception() { |
---|
28 | Dispose(); |
---|
29 | } |
---|
30 | |
---|
31 | public virtual void Dispose() { |
---|
32 | lock(this) { |
---|
33 | if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { |
---|
34 | swigCMemOwn = false; |
---|
35 | pteidlib_dotNetPINVOKE.delete_PTEID_Exception(swigCPtr); |
---|
36 | } |
---|
37 | swigCPtr = new HandleRef(null, IntPtr.Zero); |
---|
38 | GC.SuppressFinalize(this); |
---|
39 | } |
---|
40 | } |
---|
41 | |
---|
42 | public PTEID_Exception(int lError) : this(pteidlib_dotNetPINVOKE.new_PTEID_Exception(lError), true) { |
---|
43 | } |
---|
44 | |
---|
45 | public int GetError() { |
---|
46 | int ret = pteidlib_dotNetPINVOKE.PTEID_Exception_GetError(swigCPtr); |
---|
47 | return ret; |
---|
48 | } |
---|
49 | |
---|
50 | } |
---|
51 | |
---|
52 | } |
---|