Class OpaqueReferenceType
Provides extensions for OpaqueValue<T> when its underlying type is of reference type.
Inheritance
OpaqueReferenceType
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
Returns
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
Returns
| Type |
Description |
| T |
The extracted value; or null if opaque is not allocated.
|
Type Parameters
View Source
set_Value(OpaqueValue<GCHandle>, object?)
Gets the referenced value.
Declaration
public static void set_Value(OpaqueValue<GCHandle> opaque, object? value)
Parameters
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 Parameters