C# Class Klawr.ClrHost.Managed.SafeHandles.UObjectHandle

Encapsulates a native UObject pointer and takes care of properly disposing of it.
Inheritance: System.Runtime.InteropServices.SafeHandle
显示文件 Open project: Algorithman/klawr Class Usage Examples

Public Properties

Property Type Description
Null UObjectHandle

Public Methods

Method Description
Equals ( object obj ) : bool

Equality is determined by the equality of the encapsulated IntPtr.

GetHashCode ( ) : int
UObjectHandle ( ) : System

Construct a new handle.

This constructor is used by the interop code, user code should not invoke it.

UObjectHandle ( IntPtr nativeObject, bool ownsHandle ) : System

Construct a new handle to a native UObject instance. This constructor is currently only used to construct IScriptObject(s).

Protected Methods

Method Description
ReleaseHandle ( ) : bool

Method Details

Equals() public method

Equality is determined by the equality of the encapsulated IntPtr.
public Equals ( object obj ) : bool
obj object UObjectHandle to compare with.
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

ReleaseHandle() protected method

protected ReleaseHandle ( ) : bool
return bool

UObjectHandle() public method

Construct a new handle.
This constructor is used by the interop code, user code should not invoke it.
public UObjectHandle ( ) : System
return System

UObjectHandle() public method

Construct a new handle to a native UObject instance. This constructor is currently only used to construct IScriptObject(s).
public UObjectHandle ( IntPtr nativeObject, bool ownsHandle ) : System
nativeObject System.IntPtr Pointer to a native UObject instance.
ownsHandle bool true if the handle should release the native object when /// disposed, false otherwise
return System

Property Details

Null public_oe static_oe property

Encapsulates a native null pointer.
public static UObjectHandle,Klawr.ClrHost.Managed.SafeHandles Null
return UObjectHandle