Click or drag to resize
Guard Class
Provides methods for checking whether the parameters of methods fall within the expected conditions.
Inheritance Hierarchy
SystemObject
  Telerik.Windows.Documents.Spreadsheet.UtilitiesGuard

Namespace: Telerik.Windows.Documents.Spreadsheet.Utilities
Assembly: Telerik.Windows.Documents.Spreadsheet (in Telerik.Windows.Documents.Spreadsheet.dll) Version: 2017.2.607.40 (2017.2.607.40)
Syntax
public static class Guard

The Guard type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAssert
Asserts the specified condition.
Public methodStatic memberThrowExceptionIfContainsNullT
Throws an exception if the parameter contains null values.
Public methodStatic memberThrowExceptionIfContainsNullOrEmpty
Throws an exception if the parameter contains null or empty values.
Public methodStatic memberThrowExceptionIfGreaterThanT
Throws an exception if the parameters is greater than the upper bound.
Public methodStatic memberThrowExceptionIfInvalidColumnIndex
Throws an exception if the column index is invalid.
Public methodStatic memberThrowExceptionIfInvalidRowIndex
Throws an exception if the row index is invalid.
Public methodStatic memberThrowExceptionIfLessThanT
Throws an exception if the parameter is less than the lower bound.
Public methodStatic memberThrowExceptionIfNotEqualT
Throws an exception if the parameter is not equal to a value.
Public methodStatic memberThrowExceptionIfNotNullT
Throws an exception if the parameter is not null.
Public methodStatic memberThrowExceptionIfNullT
Throws an exception if the parameter is null.
Public methodStatic memberThrowExceptionIfNullOrEmpty(String, String)
Throws the exception if the parameter is null or empty.
Public methodStatic memberThrowExceptionIfNullOrEmptyT(IEnumerableT, String)
Throws an exception if the parameter is null or empty.
Public methodStatic memberThrowExceptionIfOutOfRangeT
Throws an exception if out of range.
Top
See Also