Esempio n. 1
0
        /// <summary>
        /// Create new instance that will enumerate through the supplied set of enumerables
        /// </summary>
        public MultipleEnumerator(params IEnumerable <T>[] enumerables)
        {
            #region Input validation

            Insist.IsNotNull(enumerables, "enumerables");
            Insist.IsNotEmpty(enumerables, "enumerables");

            #endregion

            _enumerables = enumerables;
        }
Esempio n. 2
0
 /// <summary>
 ///  Throws an <see cref="System.ArgumentException"/> if the given collection is empty.
 /// </summary>
 /// <typeparam name="T">The type of the collection.</typeparam>
 /// <param name="argValue">The argument value.</param>
 /// <param name="argName">The argument name.</param>
 public static void IsNotEmpty <T>(IEnumerable <T> argValue, string argName)
 {
     Insist.IsNotEmpty <T>(argValue, argName, null);
 }