Class Preconditions
A collection of methods to check preconditions.
Inheritance
System.Object
Preconditions
Namespace: Stac
Assembly: DotNetStac.dll
Syntax
public static class Preconditions : object
Methods
| Improve this Doc View SourceCheckNotNull<T>(T, String)
Checks that the specified value is not null.
Declaration
public static T CheckNotNull<T>(T value, string argName = null)
where T : class
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | The value to check. |
| System.String | argName | The name of the argument. |
Returns
| Type | Description |
|---|---|
| T | The value. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the value. |