Show / Hide Table of Contents

Class ArgumentNullExceptionExtensions

Extends ArgumentNullException class.

Inheritance
object
ArgumentNullExceptionExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public static class ArgumentNullExceptionExtensions

Methods

View Source

ThrowIfNull<T>(T?, string)

Throws ArgumentNullException if argument is null.

Declaration
public static void ThrowIfNull<T>(T? argument, string paramName = "") where T : allows ref struct
Parameters
Type Name Description
T argument

The value to check.

string paramName

The string which represents argument expression.

Type Parameters
Name Description
T

The type of the value.

  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾