SaaS CMS has officially launched! Learn more now.

Class Check

Implements the shared checking methods.

Inheritance
System.Object
Check
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Shared
Assembly: Mediachase.Commerce.dll
Version: 11.8.3
Syntax
public static class Check

Methods

ArgumentIsNotNull(Object, String)

Arguments the is not null.

Declaration
public static void ArgumentIsNotNull(object argument, string name)
Parameters
Type Name Description
System.Object argument

The argument.

System.String name

The name.

IsNotNull(Object, String)

Determines whether [is not null] [the specified argument].

Declaration
public static void IsNotNull(object argument, string message)
Parameters
Type Name Description
System.Object argument

The argument.

System.String message

The message.

IsNotTrue(Boolean, String)

Determines whether [is not true] [the specified argument].

Declaration
public static void IsNotTrue(bool argument, string message)
Parameters
Type Name Description
System.Boolean argument

if set to true [argument].

System.String message

The message.

IsTrue(Boolean, String)

Determines whether the specified argument is true.

Declaration
public static void IsTrue(bool argument, string message)
Parameters
Type Name Description
System.Boolean argument

if set to true [argument].

System.String message

The message.