A RetroSearch Logo

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

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception.throwifnull below:

ArgumentNullException.ThrowIfNull Method (System) | Microsoft Learn

ArgumentNullException.ThrowIfNull Method Definition Overloads ThrowIfNull(Object, String)
Source:
ArgumentNullException.cs
Source:
ArgumentNullException.cs
Source:
ArgumentNullException.cs
Source:
ArgumentNullException.cs
public static void ThrowIfNull(object? argument, string? paramName = default);
static member ThrowIfNull : obj * string -> unit
Public Shared Sub ThrowIfNull (argument As Object, Optional paramName As String = Nothing)
Parameters
argument
Object

The reference type argument to validate as non-null.

paramName
String

The name of the parameter with which argument corresponds. If you omit this parameter, the name of argument is used.

Exceptions Remarks

The paramName parameter is included to support the CallerArgumentExpressionAttribute attribute. It's recommended that you don't pass a value for this parameter and let the name of argument be used instead.

ThrowIfNull(Void*, String)

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