1 /*
2  * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application - mod_managed
3  * Copyright (C) 2008, Michael Giagnocavo <mgg@giagnocavo.net>
4  *
5  * Version: MPL 1.1
6  *
7  * The contents of this file are subject to the Mozilla Public License Version
8  * 1.1 (the "License"); you may not use this file except in compliance with
9  * the License. You may obtain a copy of the License at
10  * http://www.mozilla.org/MPL/
11  *
12  * Software distributed under the License is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14  * for the specific language governing rights and limitations under the
15  * License.
16  *
17  * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application - mod_managed
18  *
19  * The Initial Developer of the Original Code is
20  * Michael Giagnocavo <mgg@giagnocavo.net>
21  * Portions created by the Initial Developer are Copyright (C)
22  * the Initial Developer. All Rights Reserved.
23  *
24  * Contributor(s):
25  *
26  * Michael Giagnocavo <mgg@giagnocavo.net>
27  *
28  * Extensions.cs -- Helper extensions
29  *
30  */
31 using System;
32 using System.Collections.Generic;
33 using System.Linq;
34 using System.Text;
35 
36 namespace System.Linq
37 {
38     internal static class EnumerableExtensions
39     {
ForEach(this IEnumerable<T> source, Action<T> f)40         public static void ForEach<T>(this IEnumerable<T> source, Action<T> f)
41         {
42             foreach (var item in source) {
43                 f(item);
44             }
45         }
46     }
47 }
48