コード例 #1
0
 /// <summary>
 /// Ensures that all items in the supplied collection do not consist only of null, empty or whitespace
 /// </summary>
 /// <param name="collection">
 /// The collection to be validated.
 /// </param>
 /// <param name="argumentName">
 /// The argument name.
 /// </param>
 /// <exception cref="System.ArgumentNullException">
 /// If the collection itself is null
 /// </exception>
 /// <exception cref="System.ArgumentException">
 /// If the collection contains a null value or string.empty value or only whitespace
 /// </exception>
 public static void AllItemsAreNotNullOrWhitespace(IEnumerable <string> collection, string argumentName)
 {
     Insist.AllItemsAreNotNullOrWhitespace(collection, argumentName, null);
 }