We're updating the issue view to help you get more done. 

ArgumentUtility.CheckNotEmpty no longer accepts values of type IEnumerable

Description

Constraint for ArgumentUtility.CheckNotEmpty<T>(string name, T value)::T has been changed from IEnumerable to ICollection to prevent the argument check from causing a (partial) evaluation of the sequence.

In addtion to the existing method, overloads are provided that accept ICollection<T> and IReadOnlyCollection<T> repsectivly, to support all .NET collection APIs. Note that these overloads have a return type of void and can therefor not be used for combining the argument check with an assignment in a single statement.

Assignee

Michael Ketting

Reporter

Michael Ketting

Labels

None

Components

Fix versions

Affects versions

Priority

Normal
Configure