|
Enhanced C#
Loyc library documentation
|
Helper methods for checking argument values that throw exceptions when an argument value is not acceptable. More...
Helper methods for checking argument values that throw exceptions when an argument value is not acceptable.
Static Public Member Functions | |
| static T | IsNotNull< T > (string paramName, T?arg) |
| static int | IsNotNegative (string argName, int value) |
| static int | IsInRange (string paramName, int value, int min, int max) |
| static void | ThrowOutOfRange (string argName) |
| static void | ThrowOutOfRange (string argName, string message) |
| static void | ThrowOutOfRange (string argName, string message, object?arg1, object?arg2=null) |
| static void | ThrowOutOfRange (string argName, int value, int min, int max) |
| static void | ThrowArgumentNull (string argName) |
| static void | ThrowBadArgument (string message) |
| static void | ThrowBadArgument (string argName, string message) |
| static void | ThrowBadArgument (string argName, string message, object?arg1, object?arg2=null) |
| static int | ThrowIfStartOrCountAreBelowZeroAndLimitCountIfNecessary (int start, int count, int outerCount) |
| Captures a common code sequence from many slice classes. More... | |
| static void | Arg (string argName, [DoesNotReturnIf(false)] bool condition, object argValue) |
| static void | Arg (string argName, [DoesNotReturnIf(false)] bool condition) |
|
inlinestatic |
Captures a common code sequence from many slice classes.
| start | Start location in the slice |
| count | Desired length of the slice |
| listCount | Count of the list being sliced |
1.8.7