Class StructRefHelperExtensions
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
instanceTThe reference to the struct instance.
Returns
- StructRef<T>
A StructRef<T> instance holding a reference to the passed struct instance reference.
Type Parameters
TThe type of the struct instance whose reference is obtained.