Unsafe.Read<T>(Void*) Method

Definition

Reads a value of type T from the given location.

public:
generic <typename T>
 static T Read(void* source);
public static T Read<T> (void* source);
public static T? Read<T> (void* source);
static member Read : nativeptr<unit> -> 'T

Type Parameters

T

The type to read.

Parameters

source
Void*

The location to read from.

Returns

T

An object of type T read from the given location.

Applies to