Class Check
Implements the shared checking methods.
Inheritance
System.Object
Check
Namespace: Mediachase.Commerce.Shared
Assembly: Mediachase.Commerce.dll
Version: 14.26.0Syntax
public static class Check : Object
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 |
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 |
System.String | message | The message. |