CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of IEnumerable
C#
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))
            {
by Vijay Sharma   January 06, 2011 @ 8:11am
207 Views
no comments
 
C#
public static PerpetualEnumerator<T> GetPerpetualEnumerator<T>(this IEnumerable<T> items)
{
    return new PerpetualEnumerator<T>(items);
}
277 Views
no comments
 
C#
using System.Collections;
using System.Collections.Generic;
 
namespace nl4net
{
    /// <summary>
    /// Wraps a standard IEnumerator&lt;T&gt; to provide
    /// iteration over a generic collection that automatically 
    /// resets to the beginning once it reaches the end.
    /// </summary>
by Al Gonzalez   June 17, 2010 @ 9:08pm
182 Views
no comments
 
C#
using System;
using System.Linq;
 
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Person[] people = new Person[] {
352 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate