A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.runtime.compilerservices.unsafe.isnullref below:

Unsafe.IsNullRef<T>(T) Method (System.Runtime.CompilerServices) | Microsoft Learn

Unsafe.IsNullRef<T>(T) Method Definition

Determines if a given managed pointer to a value of type T is a null reference.

public:
generic <typename T>
 static bool IsNullRef(T % source);
public static bool IsNullRef<T>(ref T source) where T : allows ref struct;
public static bool IsNullRef<T>(ref T source);
static member IsNullRef : 'T -> bool
Public Shared Function IsNullRef(Of T) (ByRef source As T) As Boolean
Type Parameters
T

The elemental type of the managed pointer.

Parameters
source
T

The managed pointer to check.

Returns

true if source is a null reference; otherwise, false.

Remarks

This check is conceptually similar to (void*)(&source) == nullptr.

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4