AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
MetroHandleRef.cs
Go to the documentation of this file.
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
// Licensed under the MIT License. See LICENSE in the project root for license information.
3
4
#if UNITY_WSA && !UNITY_EDITOR && !ENABLE_IL2CPP
5
6
using
System
;
7
8
namespace
System
.Runtime.InteropServices
9
{
10
[ComVisible (
true
)]
11
public
struct
HandleRef
12
{
13
object
wrapper;
14
IntPtr handle;
15
16
public
HandleRef (
object
wrapper, IntPtr handle)
17
{
18
this.wrapper = wrapper;
19
this.handle = handle;
20
}
21
22
public
IntPtr Handle
23
{
24
get
{
return
handle; }
25
}
26
27
public
object
Wrapper
28
{
29
get
{
return
wrapper; }
30
}
31
32
public
static
explicit
operator
IntPtr (HandleRef value)
33
{
34
return
value.Handle;
35
}
36
37
public
static
IntPtr ToIntPtr(HandleRef value)
38
{
39
return
value.Handle;
40
}
41
}
42
}
43
#endif
System
Assets
HoloToolkit
Common
Scripts
CrossPlatform
MetroHandleRef.cs
Generated by
1.8.12