Class BoxedValue
Represents extension methods for BoxedValue<T> class.
Inherited Members
Namespace: DotNext.Runtime
Assembly: DotNext.dll
Syntax
public static class BoxedValue
Methods
| Edit this page View SourceCopy<T>(BoxedValue<T>)
Creates a bitwise copy of the boxed value.
Declaration
public static BoxedValue<T> Copy<T>(this BoxedValue<T> boxedValue) where T : struct
Parameters
| Type | Name | Description |
|---|---|---|
| BoxedValue<T> | boxedValue |
Returns
| Type | Description |
|---|---|
| BoxedValue<T> | A reference to bitwise copy of the boxed value. |
Type Parameters
| Name | Description |
|---|---|
| T |
Unbox<T>(BoxedValue<T>)
Unboxes the value.
Declaration
public static ref T Unbox<T>(this BoxedValue<T> boxedValue) where T : struct
Parameters
| Type | Name | Description |
|---|---|---|
| BoxedValue<T> | boxedValue | A reference to the boxed value. |
Returns
| Type | Description |
|---|---|
| T | A reference to the boxed value. |
Type Parameters
| Name | Description |
|---|---|
| T | The value type. |