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
The elemental type of the managed pointer.
ParametersThe managed pointer to check.
Returnstrue
if source
is a null reference; otherwise, false
.
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 articleWas 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