Table of Contents

Class StructRefHelperExtensions

Namespace
Garyon.Objects
Assembly
Garyon.dll

Provides extensions related to StructRef<T>.

public static class StructRefHelperExtensions
Inheritance
StructRefHelperExtensions
Inherited Members

Methods

CreateReference<T>(ref T)

Creates a new instance of the StructRef<T> class out of the desired struct instance reference.

public static StructRef<T> CreateReference<T>(this ref T instance) where T : unmanaged

Parameters

instance T

The reference to the struct instance.

Returns

StructRef<T>

A StructRef<T> instance holding a reference to the passed struct instance reference.

Type Parameters

T

The type of the struct instance whose reference is obtained.