Method AsRef
AsRef<T>(in T)
Returns a read-write reference from a read-only reference.
in
arg (read-only reference) where a ref
arg (read-write reference) is expected.
Do not mutate the referenced value, as doing so may break the runtime's assumptions.
Declaration
public static ref T AsRef<T>(in T value) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
T | value | A read-only reference. |
Returns
Type | Description |
---|---|
T | A read-write reference to the value referenced by |
Type Parameters
Name | Description |
---|---|
T | The type of referenced value. |