Unsafe.AsRef Unsafe.AsRef Unsafe.AsRef Unsafe.AsRef Method

Definition

Overloads

AsRef<T>(Void*) AsRef<T>(Void*) AsRef<T>(Void*)

Reinterprets the given location as a reference to a value of type T.

AsRef<T>(T) AsRef<T>(T) AsRef<T>(T) AsRef<T>(T)

AsRef<T>(Void*) AsRef<T>(Void*) AsRef<T>(Void*)

Reinterprets the given location as a reference to a value of type T.

public:
generic <typename T>
 static T % AsRef(void* source);
public static T AsRef<T> (void* source);
static member AsRef : nativeptr<unit> -> 

Type Parameters

T

The type of the interpreted location.

Parameters

source
Void*

The location of the value to reference.

Returns

A reference to a value of type T.

AsRef<T>(T) AsRef<T>(T) AsRef<T>(T) AsRef<T>(T)

public:
generic <typename T>
 static T % AsRef(T % source);
public static ref T AsRef<T> (ref T source);
static member AsRef :  -> 
Public Shared Function AsRef(Of T) (ByRef source As T) As T

Type Parameters

T

Parameters

source
T T T T

Returns

T T T T

Applies to