Esempio n. 1
0
 /// <summary>Puts a collection of given items through the postprocessor.</summary>
 /// <typeparam name="T">The type of object to process.</typeparam>
 /// <param name="Processor">The processor to use.</param>
 /// <param name="Items">The items to process.</param>
 /// <returns>Puts a collection of given items through the processor.</returns>
 public static void Postprocess <T>(this IPostProcessor <T> Processor, IEnumerable <T> Items)
 {
     foreach (T Item in Items)
     {
         Processor.Postprocess(Item);
     }
 }
Esempio n. 2
0
 /// <summary>Puts a collection of given items through the postprocessor.</summary>
 /// <typeparam name="T">The type of object to process.</typeparam>
 /// <typeparam name="TypeContext">The type of the context.</typeparam>
 /// <param name="Processor">The processor to use.</param>
 /// <param name="Items">The items to process.</param>
 /// <param name="Context">The context needed to process.</param>
 public static void Postprocess <T, TypeContext>(this IPostProcessor <T, TypeContext> Processor, IEnumerable <T> Items, TypeContext Context)
 {
     foreach (T Item in Items)
     {
         Processor.Postprocess(Item, Context);
     }
 }
Esempio n. 3
0
        /// <summary>Puts a collection of given items through the postprocessor.</summary>
        /// <typeparam name="T">The type of object to process.</typeparam>
        /// <param name="Processor">The processor to use.</param>
        /// <param name="Items">The items to process.</param>
        /// <returns>Puts a collection of given items through the processor.</returns>
        public static void Postprocess <T>(this IPostProcessor <T> Processor, IList <T> Items)
        {
            Int32 Count = Items.Count;

            for (Int32 I = 0; I < Count; I++)
            {
                Processor.Postprocess(Items[I]);
            }
        }
Esempio n. 4
0
        /// <summary>Puts a collection of given items through the postprocessor.</summary>
        /// <typeparam name="T">The type of object to process.</typeparam>
        /// <param name="Processor">The processor to use.</param>
        /// <param name="Items">The items to process.</param>
        /// <returns>Puts a collection of given items through the processor.</returns>
        public static void Postprocess <T>(this IPostProcessor <T> Processor, T[] Items)
        {
            Int32 Count = Items.Length;

            for (Int32 I = 0; I < Count; I++)
            {
                Processor.Postprocess(Items[I]);
            }
        }
Esempio n. 5
0
        /// <summary>Puts a collection of given items through the postprocessor.</summary>
        /// <typeparam name="T">The type of object to process.</typeparam>
        /// <typeparam name="TypeContext">The type of the context.</typeparam>
        /// <param name="Processor">The processor to use.</param>
        /// <param name="Items">The items to process.</param>
        /// <param name="Context">The context needed to process.</param>
        public static void Postprocess <T, TypeContext>(this IPostProcessor <T, TypeContext> Processor, IList <T> Items, TypeContext Context)
        {
            Int32 Count = Items.Count;

            for (Int32 I = 0; I < Count; I++)
            {
                Processor.Postprocess(Items[I], Context);
            }
        }