Guard.HasSizeGreaterThan Method

Definition

Overloads

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.

HasSizeGreaterThan(String, Int32, String)

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

public static void HasSizeGreaterThan (string text, int size, string name);
static member HasSizeGreaterThan : string * int * string -> unit
Public Shared Sub HasSizeGreaterThan (text As String, size As Integer, name As String)

Parameters

text
String

The input String instance to check the size for.

size
Int32

The target size to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if the size of text is <= size.

Applies to

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

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

public static void HasSizeGreaterThan<T> (System.Collections.Generic.ICollection<T> collection, int size, string name);
static member HasSizeGreaterThan : System.Collections.Generic.ICollection<'T> * int * string -> unit
Public Shared Sub HasSizeGreaterThan(Of T) (collection As ICollection(Of T), size As Integer, name As String)

Type Parameters

T

The item of items in the input ICollection<T> instance.

Parameters

collection
ICollection<T>

The input ICollection<T> instance to check the size for.

size
Int32

The target size to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if the size of collection is <= size.

Applies to

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

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

public static void HasSizeGreaterThan<T> (System.Collections.Generic.IReadOnlyCollection<T> collection, int size, string name);
static member HasSizeGreaterThan : System.Collections.Generic.IReadOnlyCollection<'T> * int * string -> unit
Public Shared Sub HasSizeGreaterThan(Of T) (collection As IReadOnlyCollection(Of T), size As Integer, name As String)

Type Parameters

T

The item of items in the input IReadOnlyCollection<T> instance.

Parameters

collection
IReadOnlyCollection<T>

The input IReadOnlyCollection<T> instance to check the size for.

size
Int32

The target size to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if the size of collection is <= size.

Applies to

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

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

public static void HasSizeGreaterThan<T> (System.Collections.Generic.List<T> list, int size, string name);
static member HasSizeGreaterThan : System.Collections.Generic.List<'T> * int * string -> unit
Public Shared Sub HasSizeGreaterThan(Of T) (list As List(Of T), size As Integer, name As String)

Type Parameters

T

The item of items in the input List<T> instance.

Parameters

list
List<T>

The input List<T> instance to check the size for.

size
Int32

The target size to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if the size of list is <= size.

Applies to

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

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

public static void HasSizeGreaterThan<T> (Memory<T> memory, int size, string name);
static member HasSizeGreaterThan : Memory<'T> * int * string -> unit
Public Shared Sub HasSizeGreaterThan(Of T) (memory As Memory(Of T), size As Integer, name As String)

Type Parameters

T

The item of items in the input Memory<T> instance.

Parameters

memory
Memory<T>

The input Memory<T> instance to check the size for.

size
Int32

The target size to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if the size of memory is <= size.

Applies to

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

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

public static void HasSizeGreaterThan<T> (ReadOnlyMemory<T> memory, int size, string name);
static member HasSizeGreaterThan : ReadOnlyMemory<'T> * int * string -> unit
Public Shared Sub HasSizeGreaterThan(Of T) (memory As ReadOnlyMemory(Of T), size As Integer, name As String)

Type Parameters

T

The item of items in the input ReadOnlyMemory<T> instance.

Parameters

memory
ReadOnlyMemory<T>

The input ReadOnlyMemory<T> instance to check the size for.

size
Int32

The target size to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if the size of memory is <= size.

Applies to

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

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

public static void HasSizeGreaterThan<T> (ReadOnlySpan<T> span, int size, string name);
static member HasSizeGreaterThan : ReadOnlySpan<'T> * int * string -> unit
Public Shared Sub HasSizeGreaterThan(Of T) (span As ReadOnlySpan(Of T), size As Integer, name As String)

Type Parameters

T

The item of items in the input ReadOnlySpan<T> instance.

Parameters

span
ReadOnlySpan<T>

The input ReadOnlySpan<T> instance to check the size for.

size
Int32

The target size to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if the size of span is <= size.

Applies to

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

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

public static void HasSizeGreaterThan<T> (Span<T> span, int size, string name);
static member HasSizeGreaterThan : Span<'T> * int * string -> unit
Public Shared Sub HasSizeGreaterThan(Of T) (span As Span(Of T), size As Integer, name As String)

Type Parameters

T

The item of items in the input Span<T> instance.

Parameters

span
Span<T>

The input Span<T> instance to check the size for.

size
Int32

The target size to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if the size of span is <= size.

Applies to

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

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

public static void HasSizeGreaterThan<T> (T[] array, int size, string name);
static member HasSizeGreaterThan : 'T[] * int * string -> unit
Public Shared Sub HasSizeGreaterThan(Of T) (array As T(), size As Integer, name As String)

Type Parameters

T

The item of items in the input array instance.

Parameters

array
T[]

The input array instance to check the size for.

size
Int32

The target size to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if the size of array is <= size.

Applies to