//The MIT License (MIT)
//http://arolibraries.codeplex.com/license
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
namespace AroLibraries.ExtensionMethods.Enumerable
{
publicstaticclass IEnumerableExt
{
publicstatic IEnumerable<TSource> Ext_StopUntile<TSource>(this IEnumerable<TSource> dumySource, Predicate<TSource> predicate)
{
foreach (TSource item in dumySource)
{
if (predicate(item))
{
yield break;
}
yield return item;
}
}
}
}