Edit

Share via


Guard Class

Definition

Helper methods to verify conditions when running code.

public static class Guard
type Guard = class
Public Class Guard
Inheritance
Guard

Methods

CanRead(Stream, String)

Asserts that the input Stream instance must support reading.

CanSeek(Stream, String)

Asserts that the input Stream instance must support seeking.

CanWrite(Stream, String)

Asserts that the input Stream instance must support writing.

HasSizeEqualTo(String, Int32, String)

Asserts that the input String instance must have a size of a specified value.

HasSizeEqualTo(String, String, String)

Asserts that the source String instance must have the same size of a destination String instance.

HasSizeEqualTo<T>(ICollection<T>, ICollection<T>, String)

Asserts that the source ICollection<T> instance must have the same size of a destination ICollection<T> instance.

HasSizeEqualTo<T>(ICollection<T>, Int32, String)

Asserts that the input ICollection<T> instance must have a size of a specified value.

HasSizeEqualTo<T>(IReadOnlyCollection<T>, ICollection<T>, String)

Asserts that the source IReadOnlyCollection<T> instance must have the same size of a destination IReadOnlyCollection<T> instance.

HasSizeEqualTo<T>(IReadOnlyCollection<T>, Int32, String)

Asserts that the input IReadOnlyCollection<T> instance must have a size of a specified value.

HasSizeEqualTo<T>(List<T>, Int32, String)

Asserts that the input List<T> instance must have a size of a specified value.

HasSizeEqualTo<T>(List<T>, List<T>, String)

Asserts that the source List<T> instance must have the same size of a destination List<T> instance.

HasSizeEqualTo<T>(Memory<T>, Int32, String)

Asserts that the input Memory<T> instance must have a size of a specified value.

HasSizeEqualTo<T>(Memory<T>, Memory<T>, String)

Asserts that the source Memory<T> instance must have the same size of a destination Memory<T> instance.

HasSizeEqualTo<T>(ReadOnlyMemory<T>, Int32, String)

Asserts that the input ReadOnlyMemory<T> instance must have a size of a specified value.

HasSizeEqualTo<T>(ReadOnlyMemory<T>, Memory<T>, String)

Asserts that the source ReadOnlyMemory<T> instance must have the same size of a destination ReadOnlyMemory<T> instance.

HasSizeEqualTo<T>(ReadOnlySpan<T>, Int32, String)

Asserts that the input ReadOnlySpan<T> instance must have a size of a specified value.

HasSizeEqualTo<T>(ReadOnlySpan<T>, Span<T>, String)

Asserts that the source ReadOnlySpan<T> instance must have the same size of a destination ReadOnlySpan<T> instance.

HasSizeEqualTo<T>(Span<T>, Int32, String)

Asserts that the input Span<T> instance must have a size of a specified value.

HasSizeEqualTo<T>(Span<T>, Span<T>, String)

Asserts that the source Span<T> instance must have the same size of a destination Span<T> instance.

HasSizeEqualTo<T>(T[], Int32, String)

Asserts that the input array instance must have a size of a specified value.

HasSizeEqualTo<T>(T[], T[], String)

Asserts that the source array instance must have the same size of a destination array instance.

HasSizeGreaterThan(String, Int32, String)

Asserts that the input String instance must have a size over a specified value.

HasSizeGreaterThan<T>(ICollection<T>, Int32, String)

Asserts that the input ICollection<T> instance must have a size over a specified value.

HasSizeGreaterThan<T>(IReadOnlyCollection<T>, Int32, String)

Asserts that the input IReadOnlyCollection<T> instance must have a size over a specified value.

HasSizeGreaterThan<T>(List<T>, Int32, String)

Asserts that the input List<T> instance must have a size over a specified value.

HasSizeGreaterThan<T>(Memory<T>, Int32, String)

Asserts that the input Memory<T> instance must have a size over a specified value.

HasSizeGreaterThan<T>(ReadOnlyMemory<T>, Int32, String)

Asserts that the input ReadOnlyMemory<T> instance must have a size over a specified value.

HasSizeGreaterThan<T>(ReadOnlySpan<T>, Int32, String)

Asserts that the input ReadOnlySpan<T> instance must have a size over a specified value.

HasSizeGreaterThan<T>(Span<T>, Int32, String)

Asserts that the input Span<T> instance must have a size over a specified value.

HasSizeGreaterThan<T>(T[], Int32, String)

Asserts that the input array instance must have a size over a specified value.

HasSizeGreaterThanOrEqualTo(String, Int32, String)

Asserts that the input String instance must have a size of at least specified value.

HasSizeGreaterThanOrEqualTo<T>(ICollection<T>, Int32, String)

Asserts that the input ICollection<T> instance must have a size of at least or equal to a specified value.

HasSizeGreaterThanOrEqualTo<T>(IReadOnlyCollection<T>, Int32, String)

Asserts that the input IReadOnlyCollection<T> instance must have a size of at least or equal to a specified value.

HasSizeGreaterThanOrEqualTo<T>(List<T>, Int32, String)

Asserts that the input List<T> instance must have a size of at least or equal to a specified value.

HasSizeGreaterThanOrEqualTo<T>(Memory<T>, Int32, String)

Asserts that the input Memory<T> instance must have a size of at least or equal to a specified value.

HasSizeGreaterThanOrEqualTo<T>(ReadOnlyMemory<T>, Int32, String)

Asserts that the input ReadOnlyMemory<T> instance must have a size of at least or equal to a specified value.

HasSizeGreaterThanOrEqualTo<T>(ReadOnlySpan<T>, Int32, String)

Asserts that the input ReadOnlySpan<T> instance must have a size of at least or equal to a specified value.

HasSizeGreaterThanOrEqualTo<T>(Span<T>, Int32, String)

Asserts that the input Span<T> instance must have a size of at least or equal to a specified value.

HasSizeGreaterThanOrEqualTo<T>(T[], Int32, String)

Asserts that the input array instance must have a size of at least or equal to a specified value.

HasSizeLessThan(String, Int32, String)

Asserts that the input String instance must have a size of less than a specified value.

HasSizeLessThan<T>(ICollection<T>, Int32, String)

Asserts that the input ICollection<T> instance must have a size of less than a specified value.

HasSizeLessThan<T>(IReadOnlyCollection<T>, Int32, String)

Asserts that the input IReadOnlyCollection<T> instance must have a size of less than a specified value.

HasSizeLessThan<T>(List<T>, Int32, String)

Asserts that the input List<T> instance must have a size of less than a specified value.

HasSizeLessThan<T>(Memory<T>, Int32, String)

Asserts that the input Memory<T> instance must have a size of less than a specified value.

HasSizeLessThan<T>(ReadOnlyMemory<T>, Int32, String)

Asserts that the input ReadOnlyMemory<T> instance must have a size of less than a specified value.

HasSizeLessThan<T>(ReadOnlySpan<T>, Int32, String)

Asserts that the input ReadOnlySpan<T> instance must have a size of less than a specified value.

HasSizeLessThan<T>(Span<T>, Int32, String)

Asserts that the input Span<T> instance must have a size of less than a specified value.

HasSizeLessThan<T>(T[], Int32, String)

Asserts that the input array instance must have a size of less than a specified value.

HasSizeLessThanOrEqualTo(String, Int32, String)

Asserts that the input String instance must have a size of less than or equal to a specified value.

HasSizeLessThanOrEqualTo(String, String, String)

Asserts that the source String instance must have a size of less than or equal to that of a destination String instance.

HasSizeLessThanOrEqualTo<T>(ICollection<T>, ICollection<T>, String)

Asserts that the source ICollection<T> instance must have a size of less than or equal to that of a destination ICollection<T> instance.

HasSizeLessThanOrEqualTo<T>(ICollection<T>, Int32, String)

Asserts that the input ICollection<T> instance must have a size of less than or equal to a specified value.

HasSizeLessThanOrEqualTo<T>(IReadOnlyCollection<T>, ICollection<T>, String)

Asserts that the source IReadOnlyCollection<T> instance must have a size of less than or equal to that of a destination IReadOnlyCollection<T> instance.

HasSizeLessThanOrEqualTo<T>(IReadOnlyCollection<T>, Int32, String)

Asserts that the input IReadOnlyCollection<T> instance must have a size of less than or equal to a specified value.

HasSizeLessThanOrEqualTo<T>(List<T>, Int32, String)

Asserts that the input List<T> instance must have a size of less than or equal to a specified value.

HasSizeLessThanOrEqualTo<T>(List<T>, List<T>, String)

Asserts that the source List<T> instance must have a size of less than or equal to that of a destination List<T> instance.

HasSizeLessThanOrEqualTo<T>(Memory<T>, Int32, String)

Asserts that the input Memory<T> instance must have a size of less than or equal to a specified value.

HasSizeLessThanOrEqualTo<T>(Memory<T>, Memory<T>, String)

Asserts that the source Memory<T> instance must have a size of less than or equal to that of a destination Memory<T> instance.

HasSizeLessThanOrEqualTo<T>(ReadOnlyMemory<T>, Int32, String)

Asserts that the input ReadOnlyMemory<T> instance must have a size of less than or equal to a specified value.

HasSizeLessThanOrEqualTo<T>(ReadOnlyMemory<T>, Memory<T>, String)

Asserts that the source ReadOnlyMemory<T> instance must have a size of less than or equal to that of a destination ReadOnlyMemory<T> instance.

HasSizeLessThanOrEqualTo<T>(ReadOnlySpan<T>, Int32, String)

Asserts that the input ReadOnlySpan<T> instance must have a size of less than or equal to a specified value.

HasSizeLessThanOrEqualTo<T>(ReadOnlySpan<T>, Span<T>, String)

Asserts that the source ReadOnlySpan<T> instance must have a size of less than or equal to that of a destination ReadOnlySpan<T> instance.

HasSizeLessThanOrEqualTo<T>(Span<T>, Int32, String)

Asserts that the input Span<T> instance must have a size of less than or equal to a specified value.

HasSizeLessThanOrEqualTo<T>(Span<T>, Span<T>, String)

Asserts that the source Span<T> instance must have a size of less than or equal to that of a destination Span<T> instance.

HasSizeLessThanOrEqualTo<T>(T[], Int32, String)

Asserts that the input array instance must have a size of less than or equal to a specified value.

HasSizeLessThanOrEqualTo<T>(T[], T[], String)

Asserts that the source array instance must have a size of less than or equal to that of a destination array instance.

HasSizeNotEqualTo(String, Int32, String)

Asserts that the input String instance must have a size not equal to a specified value.

HasSizeNotEqualTo<T>(ICollection<T>, Int32, String)

Asserts that the input ICollection<T> instance must have a size not equal to a specified value.

HasSizeNotEqualTo<T>(IReadOnlyCollection<T>, Int32, String)

Asserts that the input IReadOnlyCollection<T> instance must have a size not equal to a specified value.

HasSizeNotEqualTo<T>(List<T>, Int32, String)

Asserts that the input List<T> instance must have a size not equal to a specified value.

HasSizeNotEqualTo<T>(Memory<T>, Int32, String)

Asserts that the input Memory<T> instance must have a size not equal to a specified value.

HasSizeNotEqualTo<T>(ReadOnlyMemory<T>, Int32, String)

Asserts that the input ReadOnlyMemory<T> instance must have a size not equal to a specified value.

HasSizeNotEqualTo<T>(ReadOnlySpan<T>, Int32, String)

Asserts that the input ReadOnlySpan<T> instance must have a size not equal to a specified value.

HasSizeNotEqualTo<T>(Span<T>, Int32, String)

Asserts that the input Span<T> instance must have a size not equal to a specified value.

HasSizeNotEqualTo<T>(T[], Int32, String)

Asserts that the input array instance must have a size not equal to a specified value.

HasStatusEqualTo(Task, TaskStatus, String)

Asserts that the input Task instance has a specific status.

HasStatusNotEqualTo(Task, TaskStatus, String)

Asserts that the input Task instance has not a specific status.

IsAssignableToType(Object, Type, String)

Asserts that the input value can be assigned to a specified type.

IsAssignableToType<T>(Object, String)

Asserts that the input value can be assigned to a specified type.

IsAtStartPosition(Stream, String)

Asserts that the input Stream instance must be at the starting position.

IsBetween(Byte, Byte, Byte, String)

Asserts that the input value must be in a given interval.

IsBetween(Char, Char, Char, String)

Asserts that the input value must be in a given interval.

IsBetween(Decimal, Decimal, Decimal, String)

Asserts that the input value must be in a given interval.

IsBetween(Double, Double, Double, String)

Asserts that the input value must be in a given interval.

IsBetween(Int16, Int16, Int16, String)

Asserts that the input value must be in a given interval.

IsBetween(Int32, Int32, Int32, String)

Asserts that the input value must be in a given interval.

IsBetween(Int64, Int64, Int64, String)

Asserts that the input value must be in a given interval.

IsBetween(IntPtr, IntPtr, IntPtr, String)

Asserts that the input value must be in a given interval.

IsBetween(SByte, SByte, SByte, String)

Asserts that the input value must be in a given interval.

IsBetween(Single, Single, Single, String)

Asserts that the input value must be in a given interval.

IsBetween(UInt16, UInt16, UInt16, String)

Asserts that the input value must be in a given interval.

IsBetween(UInt32, UInt32, UInt32, String)

Asserts that the input value must be in a given interval.

IsBetween(UInt64, UInt64, UInt64, String)

Asserts that the input value must be in a given interval.

IsBetween(UIntPtr, UIntPtr, UIntPtr, String)

Asserts that the input value must be in a given interval.

IsBetween<T>(T, T, T, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(Byte, Byte, Byte, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(Char, Char, Char, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(Decimal, Decimal, Decimal, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(Double, Double, Double, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(Int16, Int16, Int16, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(Int32, Int32, Int32, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(Int64, Int64, Int64, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(IntPtr, IntPtr, IntPtr, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(SByte, SByte, SByte, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(Single, Single, Single, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(UInt16, UInt16, UInt16, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(UInt32, UInt32, UInt32, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(UInt64, UInt64, UInt64, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo(UIntPtr, UIntPtr, UIntPtr, String)

Asserts that the input value must be in a given interval.

IsBetweenOrEqualTo<T>(T, T, T, String)

Asserts that the input value must be in a given interval.

IsBitwiseEqualTo<T>(T, T, String)

Asserts that the input value must be a bitwise match with a specified value.

IsCanceled(Task, String)

Asserts that the input Task instance is canceled.

IsCloseTo(Double, Double, Double, String)

Asserts that the input value must be within a given distance from a specified value.

IsCloseTo(Int32, Int32, UInt32, String)

Asserts that the input value must be within a given distance from a specified value.

IsCloseTo(Int64, Int64, UInt64, String)

Asserts that the input value must be within a given distance from a specified value.

IsCloseTo(IntPtr, IntPtr, UIntPtr, String)

Asserts that the input value must be within a given distance from a specified value.

IsCloseTo(Single, Single, Single, String)

Asserts that the input value must be within a given distance from a specified value.

IsCompleted(Task, String)

Asserts that the input Task instance is in a completed state.

IsCompletedSuccessfully(Task, String)

Asserts that the input Task instance has been completed successfully.

IsDefault<T>(T, String)

Asserts that the input value is default.

IsEmpty(String, String)

Asserts that the input String instance must be empty.

IsEmpty<T>(ICollection<T>, String)

Asserts that the input ICollection<T> instance must be empty.

IsEmpty<T>(IReadOnlyCollection<T>, String)

Asserts that the input IReadOnlyCollection<T> instance must be empty.

IsEmpty<T>(List<T>, String)

Asserts that the input List<T> instance must be empty.

IsEmpty<T>(Memory<T>, String)

Asserts that the input Memory<T> instance must be empty.

IsEmpty<T>(ReadOnlyMemory<T>, String)

Asserts that the input ReadOnlyMemory<T> instance must be empty.

IsEmpty<T>(ReadOnlySpan<T>, String)

Asserts that the input ReadOnlySpan<T> instance must be empty.

IsEmpty<T>(Span<T>, String)

Asserts that the input Span<T> instance must be empty.

IsEmpty<T>(T[], String)

Asserts that the input array instance must be empty.

IsEqualTo(Byte, Byte, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo(Char, Char, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo(Decimal, Decimal, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo(Double, Double, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo(Int16, Int16, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo(Int32, Int32, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo(Int64, Int64, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo(IntPtr, IntPtr, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo(SByte, SByte, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo(Single, Single, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo(UInt16, UInt16, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo(UInt32, UInt32, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo(UInt64, UInt64, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo(UIntPtr, UIntPtr, String)

Asserts that the input value must be equal to a specified value.

IsEqualTo<T>(T, T, String)

Asserts that the input value must be equal to a specified value.

IsFalse(Boolean, String, String)

Asserts that the input value must be false.

IsFalse(Boolean, String)

Asserts that the input value must be false.

IsFaulted(Task, String)

Asserts that the input Task instance is faulted.

IsGreaterThan(Byte, Byte, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan(Char, Char, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan(Decimal, Decimal, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan(Double, Double, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan(Int16, Int16, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan(Int32, Int32, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan(Int64, Int64, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan(IntPtr, IntPtr, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan(SByte, SByte, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan(Single, Single, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan(UInt16, UInt16, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan(UInt32, UInt32, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan(UInt64, UInt64, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan(UIntPtr, UIntPtr, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThan<T>(T, T, String)

Asserts that the input value must be greater than a specified value.

IsGreaterThanOrEqualTo(Byte, Byte, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Char, Char, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Decimal, Decimal, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Double, Double, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Int16, Int16, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Int32, Int32, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Int64, Int64, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(IntPtr, IntPtr, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(SByte, SByte, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Single, Single, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(UInt16, UInt16, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(UInt32, UInt32, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(UInt64, UInt64, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(UIntPtr, UIntPtr, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo<T>(T, T, String)

Asserts that the input value must be greater than or equal to a specified value.

IsInRange(Byte, Byte, Byte, String)

Asserts that the input value must be in a given range.

IsInRange(Char, Char, Char, String)

Asserts that the input value must be in a given range.

IsInRange(Decimal, Decimal, Decimal, String)

Asserts that the input value must be in a given range.

IsInRange(Double, Double, Double, String)

Asserts that the input value must be in a given range.

IsInRange(Int16, Int16, Int16, String)

Asserts that the input value must be in a given range.

IsInRange(Int32, Int32, Int32, String)

Asserts that the input value must be in a given range.

IsInRange(Int64, Int64, Int64, String)

Asserts that the input value must be in a given range.

IsInRange(IntPtr, IntPtr, IntPtr, String)

Asserts that the input value must be in a given range.

IsInRange(SByte, SByte, SByte, String)

Asserts that the input value must be in a given range.

IsInRange(Single, Single, Single, String)

Asserts that the input value must be in a given range.

IsInRange(UInt16, UInt16, UInt16, String)

Asserts that the input value must be in a given range.

IsInRange(UInt32, UInt32, UInt32, String)

Asserts that the input value must be in a given range.

IsInRange(UInt64, UInt64, UInt64, String)

Asserts that the input value must be in a given range.

IsInRange(UIntPtr, UIntPtr, UIntPtr, String)

Asserts that the input value must be in a given range.

IsInRange<T>(T, T, T, String)

Asserts that the input value must be in a given range.

IsInRangeFor(Int32, String, String)

Asserts that the input index is valid for a given String instance.

IsInRangeFor<T>(Int32, ICollection<T>, String)

Asserts that the input index is valid for a given ICollection<T> instance.

IsInRangeFor<T>(Int32, IReadOnlyCollection<T>, String)

Asserts that the input index is valid for a given IReadOnlyCollection<T> instance.

IsInRangeFor<T>(Int32, List<T>, String)

Asserts that the input index is valid for a given List<T> instance.

IsInRangeFor<T>(Int32, Memory<T>, String)

Asserts that the input index is valid for a given Memory<T> instance.

IsInRangeFor<T>(Int32, ReadOnlyMemory<T>, String)

Asserts that the input index is valid for a given ReadOnlyMemory<T> instance.

IsInRangeFor<T>(Int32, ReadOnlySpan<T>, String)

Asserts that the input index is valid for a given ReadOnlySpan<T> instance.

IsInRangeFor<T>(Int32, Span<T>, String)

Asserts that the input index is valid for a given Span<T> instance.

IsInRangeFor<T>(Int32, T[], String)

Asserts that the input index is valid for a given array instance.

IsLessThan(Byte, Byte, String)

Asserts that the input value must be less than a specified value.

IsLessThan(Char, Char, String)

Asserts that the input value must be less than a specified value.

IsLessThan(Decimal, Decimal, String)

Asserts that the input value must be less than a specified value.

IsLessThan(Double, Double, String)

Asserts that the input value must be less than a specified value.

IsLessThan(Int16, Int16, String)

Asserts that the input value must be less than a specified value.

IsLessThan(Int32, Int32, String)

Asserts that the input value must be less than a specified value.

IsLessThan(Int64, Int64, String)

Asserts that the input value must be less than a specified value.

IsLessThan(IntPtr, IntPtr, String)

Asserts that the input value must be less than a specified value.

IsLessThan(SByte, SByte, String)

Asserts that the input value must be less than a specified value.

IsLessThan(Single, Single, String)

Asserts that the input value must be less than a specified value.

IsLessThan(UInt16, UInt16, String)

Asserts that the input value must be less than a specified value.

IsLessThan(UInt32, UInt32, String)

Asserts that the input value must be less than a specified value.

IsLessThan(UInt64, UInt64, String)

Asserts that the input value must be less than a specified value.

IsLessThan(UIntPtr, UIntPtr, String)

Asserts that the input value must be less than a specified value.

IsLessThan<T>(T, T, String)

Asserts that the input value must be less than a specified value.

IsLessThanOrEqualTo(Byte, Byte, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo(Char, Char, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo(Decimal, Decimal, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo(Double, Double, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo(Int16, Int16, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo(Int32, Int32, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo(Int64, Int64, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo(IntPtr, IntPtr, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo(SByte, SByte, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo(Single, Single, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo(UInt16, UInt16, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo(UInt32, UInt32, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo(UInt64, UInt64, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo(UIntPtr, UIntPtr, String)

Asserts that the input value must be less than or equal to a specified value.

IsLessThanOrEqualTo<T>(T, T, String)

Asserts that the input value must be less than or equal to a specified value.

IsNotAssignableToType(Object, Type, String)

Asserts that the input value can't be assigned to a specified type.

IsNotAssignableToType<T>(Object, String)

Asserts that the input value can't be assigned to a specified type.

IsNotBetween(Byte, Byte, Byte, String)

Asserts that the input value must not be in a given interval.

IsNotBetween(Char, Char, Char, String)

Asserts that the input value must not be in a given interval.

IsNotBetween(Decimal, Decimal, Decimal, String)

Asserts that the input value must not be in a given interval.

IsNotBetween(Double, Double, Double, String)

Asserts that the input value must not be in a given interval.

IsNotBetween(Int16, Int16, Int16, String)

Asserts that the input value must not be in a given interval.

IsNotBetween(Int32, Int32, Int32, String)

Asserts that the input value must not be in a given interval.

IsNotBetween(Int64, Int64, Int64, String)

Asserts that the input value must not be in a given interval.

IsNotBetween(IntPtr, IntPtr, IntPtr, String)

Asserts that the input value must not be in a given interval.

IsNotBetween(SByte, SByte, SByte, String)

Asserts that the input value must not be in a given interval.

IsNotBetween(Single, Single, Single, String)

Asserts that the input value must not be in a given interval.

IsNotBetween(UInt16, UInt16, UInt16, String)

Asserts that the input value must not be in a given interval.

IsNotBetween(UInt32, UInt32, UInt32, String)

Asserts that the input value must not be in a given interval.

IsNotBetween(UInt64, UInt64, UInt64, String)

Asserts that the input value must not be in a given interval.

IsNotBetween(UIntPtr, UIntPtr, UIntPtr, String)

Asserts that the input value must not be in a given interval.

IsNotBetween<T>(T, T, T, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Byte, Byte, Byte, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Char, Char, Char, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Decimal, Decimal, Decimal, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Double, Double, Double, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Int16, Int16, Int16, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Int32, Int32, Int32, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Int64, Int64, Int64, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(IntPtr, IntPtr, IntPtr, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(SByte, SByte, SByte, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Single, Single, Single, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(UInt16, UInt16, UInt16, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(UInt32, UInt32, UInt32, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(UInt64, UInt64, UInt64, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(UIntPtr, UIntPtr, UIntPtr, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo<T>(T, T, T, String)

Asserts that the input value must not be in a given interval.

IsNotCanceled(Task, String)

Asserts that the input Task instance is not canceled.

IsNotCloseTo(Double, Double, Double, String)

Asserts that the input value must not be within a given distance from a specified value.

IsNotCloseTo(Int32, Int32, UInt32, String)

Asserts that the input value must not be within a given distance from a specified value.

IsNotCloseTo(Int64, Int64, UInt64, String)

Asserts that the input value must not be within a given distance from a specified value.

IsNotCloseTo(IntPtr, IntPtr, UIntPtr, String)

Asserts that the input value must not be within a given distance from a specified value.

IsNotCloseTo(Single, Single, Single, String)

Asserts that the input value must not be within a given distance from a specified value.

IsNotCompleted(Task, String)

Asserts that the input Task instance is not in a completed state.

IsNotCompletedSuccessfully(Task, String)

Asserts that the input Task instance has not been completed successfully.

IsNotDefault<T>(T, String)

Asserts that the input value is not default.

IsNotEmpty(String, String)

Asserts that the input String instance must not be empty.

IsNotEmpty<T>(ICollection<T>, String)

Asserts that the input ICollection<T> instance must not be empty.

IsNotEmpty<T>(IReadOnlyCollection<T>, String)

Asserts that the input IReadOnlyCollection<T> instance must not be empty.

IsNotEmpty<T>(List<T>, String)

Asserts that the input List<T> instance must not be empty.

IsNotEmpty<T>(Memory<T>, String)

Asserts that the input Memory<T> instance must not be empty.

IsNotEmpty<T>(ReadOnlyMemory<T>, String)

Asserts that the input ReadOnlyMemory<T> instance must not be empty.

IsNotEmpty<T>(ReadOnlySpan<T>, String)

Asserts that the input ReadOnlySpan<T> instance must not be empty.

IsNotEmpty<T>(Span<T>, String)

Asserts that the input Span<T> instance must not be empty.

IsNotEmpty<T>(T[], String)

Asserts that the input array instance must not be empty.

IsNotEqualTo(Byte, Byte, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Char, Char, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Decimal, Decimal, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Double, Double, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Int16, Int16, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Int32, Int32, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Int64, Int64, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(IntPtr, IntPtr, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(SByte, SByte, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Single, Single, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(UInt16, UInt16, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(UInt32, UInt32, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(UInt64, UInt64, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(UIntPtr, UIntPtr, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo<T>(T, T, String)

Asserts that the input value must be not equal to a specified value.

IsNotFaulted(Task, String)

Asserts that the input Task instance is not faulted.

IsNotInRange(Byte, Byte, Byte, String)

Asserts that the input value must not be in a given range.

IsNotInRange(Char, Char, Char, String)

Asserts that the input value must not be in a given range.

IsNotInRange(Decimal, Decimal, Decimal, String)

Asserts that the input value must not be in a given range.

IsNotInRange(Double, Double, Double, String)

Asserts that the input value must not be in a given range.

IsNotInRange(Int16, Int16, Int16, String)

Asserts that the input value must not be in a given range.

IsNotInRange(Int32, Int32, Int32, String)

Asserts that the input value must not be in a given range.

IsNotInRange(Int64, Int64, Int64, String)

Asserts that the input value must not be in a given range.

IsNotInRange(IntPtr, IntPtr, IntPtr, String)

Asserts that the input value must not be in a given range.

IsNotInRange(SByte, SByte, SByte, String)

Asserts that the input value must not be in a given range.

IsNotInRange(Single, Single, Single, String)

Asserts that the input value must not be in a given range.

IsNotInRange(UInt16, UInt16, UInt16, String)

Asserts that the input value must not be in a given range.

IsNotInRange(UInt32, UInt32, UInt32, String)

Asserts that the input value must not be in a given range.

IsNotInRange(UInt64, UInt64, UInt64, String)

Asserts that the input value must not be in a given range.

IsNotInRange(UIntPtr, UIntPtr, UIntPtr, String)

Asserts that the input value must not be in a given range.

IsNotInRange<T>(T, T, T, String)

Asserts that the input value must not be in a given range.

IsNotInRangeFor(Int32, String, String)

Asserts that the input index is not valid for a given String instance.

IsNotInRangeFor<T>(Int32, ICollection<T>, String)

Asserts that the input index is not valid for a given ICollection<T> instance.

IsNotInRangeFor<T>(Int32, IReadOnlyCollection<T>, String)

Asserts that the input index is not valid for a given IReadOnlyCollection<T> instance.

IsNotInRangeFor<T>(Int32, List<T>, String)

Asserts that the input index is not valid for a given List<T> instance.

IsNotInRangeFor<T>(Int32, Memory<T>, String)

Asserts that the input index is not valid for a given Memory<T> instance.

IsNotInRangeFor<T>(Int32, ReadOnlyMemory<T>, String)

Asserts that the input index is not valid for a given ReadOnlyMemory<T> instance.

IsNotInRangeFor<T>(Int32, ReadOnlySpan<T>, String)

Asserts that the input index is not valid for a given ReadOnlySpan<T> instance.

IsNotInRangeFor<T>(Int32, Span<T>, String)

Asserts that the input index is not valid for a given Span<T> instance.

IsNotInRangeFor<T>(Int32, T[], String)

Asserts that the input index is not valid for a given array instance.

IsNotNull<T>(Nullable<T>, String)

Asserts that the input value is not null.

IsNotNull<T>(T, String)

Asserts that the input value is not null.

IsNotNullOrEmpty(String, String)

Asserts that the input String instance must not be null or empty.

IsNotNullOrWhitespace(String, String)
Obsolete.

Asserts that the input String instance must not be null or whitespace.

IsNotNullOrWhiteSpace(String, String)

Asserts that the input String instance must not be null or whitespace.

IsNotOfType(Object, Type, String)

Asserts that the input value is not of a specific type.

IsNotOfType<T>(Object, String)

Asserts that the input value is not of a specific type.

IsNotWhitespace(String, String)
Obsolete.

Asserts that the input String instance must not be null or whitespace.

IsNotWhiteSpace(String, String)

Asserts that the input String instance must not be null or whitespace.

IsNull<T>(Nullable<T>, String)

Asserts that the input value is null.

IsNull<T>(T, String)

Asserts that the input value is null.

IsNullOrEmpty(String, String)

Asserts that the input String instance must be null or empty.

IsNullOrWhitespace(String, String)
Obsolete.

Asserts that the input String instance must be null or whitespace.

IsNullOrWhiteSpace(String, String)

Asserts that the input String instance must be null or whitespace.

IsOfType(Object, Type, String)

Asserts that the input value is of a specific type.

IsOfType<T>(Object, String)

Asserts that the input value is of a specific type.

IsReferenceEqualTo<T>(T, T, String)

Asserts that the input value must be the same instance as the target value.

IsReferenceNotEqualTo<T>(T, T, String)

Asserts that the input value must not be the same instance as the target value.

IsTrue(Boolean, String, String)

Asserts that the input value must be true.

IsTrue(Boolean, String)

Asserts that the input value must be true.

IsWhitespace(String, String)
Obsolete.

Asserts that the input String instance must be whitespace.

IsWhiteSpace(String, String)

Asserts that the input String instance must be whitespace.

Applies to