Click or drag to resize

PropertyInvalidExceptionValidateNotEmptyT Method (ICollectionT, String)

Validate that the given property value must not be or an empty collection, and throw PropertyInvalidException if it is.

Namespace:  AGI.Foundation
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public static void ValidateNotEmpty<T>(
	ICollection<T> value,
	string propertyName
)

Parameters

value
Type: System.Collections.GenericICollectionT
The property value.
propertyName
Type: SystemString
The name of the property.

Type Parameters

T
The type of items in the collection.
Exceptions
ExceptionCondition
PropertyInvalidException Thrown if value is empty.
See Also