Methods (4)
Namespace: SchwabenCode.QuickIO.Internal
internal static classInvariantGetNameGreaterNotEmptyNotNull

Syntax

internal static class Invariant : object

Basetype

  • System.object

Summary

Several check methods to verify method parameters

Used by

Methods

GetName(T item)

Returns the given name

public static String GetName<T>(T item)

Parameters

item

T

Property Name

Type Parameters

T

Type

Returns

Property Name

Greater(Int32 count, Int32 min)

count has to be greater than min

public static void Greater(Int32 count, Int32 min)

Parameters

count

Int32

Count to check

min

Int32

Reference value

NotEmpty(String item)

Checks if specified string element is null or emoty

public static void NotEmpty(String item)

Parameters

item

String

Element to check

Exceptions

ArgumentNullException

if itemis null or empty

NotNull(T item)

Checks for null

public static void NotNull<T>(T item)

Parameters

item

T

Object to check

Type Parameters

T

Type

Exceptions

ArgumentNullException

if item is null