Format:
Recent snippets matching tags of IEnumerable
namespace Test { public static class MyExtensions { public static IEnumerable<T> Where<T> (this IEnumerable<T> source, Func<T, bool> predicate) { foreach(var item in source) { if(predicate(item)) {
207 Views
no comments
public static PerpetualEnumerator<T> GetPerpetualEnumerator<T>(this IEnumerable<T> items) { return new PerpetualEnumerator<T>(items); }
277 Views
no comments
using System.Collections; using System.Collections.Generic; namespace nl4net { /// <summary> /// Wraps a standard IEnumerator<T> to provide /// iteration over a generic collection that automatically /// resets to the beginning once it reaches the end. /// </summary>
182 Views
no comments
using System; using System.Linq; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Person[] people = new Person[] {
352 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
