Extended .NET SDK Documentation
2024 SP0
Loading...
Searching...
No Matches
SDK
DotNet
dd_inc
TD_SwigCore_TEMP
TargetLangSources
OdGsDisplayContext.cs
Go to the documentation of this file.
1
//------------------------------------------------------------------------------
2
// <auto-generated />
3
//
4
// This file was automatically generated by SWIG (http://www.swig.org).
5
// Version 4.0.2
6
//
7
// Do not make changes to this file unless you know what you are doing--modify
8
// the SWIG interface file instead.
9
//------------------------------------------------------------------------------
10
11
namespace
Teigha.Core
{
12
13
using
System;
14
using
System.Runtime.InteropServices;
15
16
public
class
OdGsDisplayContext
: global::System.IDisposable {
17
private
Object locker =
new
Object();
18
private
HandleRef swigCPtr;
19
protected
bool
swigCMemOwn
;
20
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21
public
OdGsDisplayContext
(IntPtr cPtr,
bool
cMemoryOwn) {
22
swigCMemOwn
= cMemoryOwn;
23
swigCPtr =
new
HandleRef(
this
, cPtr);
24
}
25
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26
public
static
HandleRef
getCPtr
(
OdGsDisplayContext
obj) {
27
return
(obj ==
null
) ?
new
HandleRef(
null
, IntPtr.Zero) : obj.swigCPtr;
28
}
29
30
~OdGsDisplayContext
() {
31
Dispose
(
false
);
32
}
33
34
public
void
Dispose
() {
35
Dispose
(
true
);
36
global::System.GC.SuppressFinalize(
this
);
37
}
38
39
protected
virtual
void
Dispose
(
bool
disposing) {
40
if
(swigCPtr.Handle != IntPtr.Zero)
41
{
42
if
(
swigCMemOwn
)
43
{
44
lock (locker)
//(this)
45
{
46
if
((swigCPtr.Handle != IntPtr.Zero) && (
swigCMemOwn
))
47
{
48
swigCMemOwn
=
false
;
49
throw
new
MethodAccessException(
"C++ destructor does not have public access"
);
50
}
51
}
52
swigCMemOwn
=
false
;
53
}
54
swigCPtr =
new
HandleRef(
null
, IntPtr.Zero);
55
}
56
GC.SuppressFinalize(
this
);
57
}
58
59
}
60
61
}
Teigha.Core.OdGsDisplayContext
Definition:
OdGsDisplayContext.cs:16
Teigha.Core.OdGsDisplayContext.swigCMemOwn
bool swigCMemOwn
Definition:
OdGsDisplayContext.cs:19
Teigha.Core.OdGsDisplayContext.Dispose
virtual void Dispose(bool disposing)
Definition:
OdGsDisplayContext.cs:39
Teigha.Core.OdGsDisplayContext.OdGsDisplayContext
OdGsDisplayContext(IntPtr cPtr, bool cMemoryOwn)
Definition:
OdGsDisplayContext.cs:21
Teigha.Core.OdGsDisplayContext.getCPtr
static HandleRef getCPtr(OdGsDisplayContext obj)
Definition:
OdGsDisplayContext.cs:26
Teigha.Core.OdGsDisplayContext.Dispose
void Dispose()
Definition:
OdGsDisplayContext.cs:34
Teigha.Core
Definition:
AcisDataType.cs:11
Generated on Wed Apr 5 2023 17:04:10