ArgumentChecks class
namespace: Serenity assembly: Serenity.Net.Services
Argument check helpers for validating that non-null values obtained from members (e.g. request.Entity) are not null, returning the value when it is not. Prefer ArgumentNullException static ThrowIfNull when checking an actual method parameter, as that keeps the parameter name recognized by CA2208 and null-state flow analysis.
public static class ArgumentChecks
Public Members
| name | description |
|---|---|
| static NotNull<T>(…) | Throws an ArgumentNullException if argument is null, otherwise returns it. (2 methods) |
See Also
- Source: ArgumentChecks.cs