Show / Hide Table of Contents

Class OpaqueReferenceType

Provides extensions for OpaqueValue<T> when its underlying type is of reference type.

Inheritance
object
OpaqueReferenceType
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.Runtime.InteropServices
Assembly: DotNext.Unsafe.dll
Syntax
public static class OpaqueReferenceType

Methods

View Source

get_Value(OpaqueValue<GCHandle>)

Gets the referenced value.

Declaration
public static object? get_Value(OpaqueValue<GCHandle> opaque)
Parameters
Type Name Description
OpaqueValue<GCHandle> opaque
Returns
Type Description
object
View Source

get_Value<T>(OpaqueValue<T>)

Gets or sets the value of the reference type.

Declaration
public static T? get_Value<T>(OpaqueValue<T> opaque) where T : class?
Parameters
Type Name Description
OpaqueValue<T> opaque
Returns
Type Description
T

The extracted value; or null if opaque is not allocated.

Type Parameters
Name Description
T
View Source

set_Value(OpaqueValue<GCHandle>, object?)

Gets the referenced value.

Declaration
public static void set_Value(OpaqueValue<GCHandle> opaque, object? value)
Parameters
Type Name Description
OpaqueValue<GCHandle> opaque
object value
View Source

set_Value<T>(OpaqueValue<T>, T?)

Gets or sets the value of the reference type.

Declaration
public static void set_Value<T>(OpaqueValue<T> opaque, T? value) where T : class?
Parameters
Type Name Description
OpaqueValue<T> opaque
T value
Type Parameters
Name Description
T
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾