System.Func.Invoke(ValueLifetimed)

Here are the examples of the csharp api System.Func.Invoke(ValueLifetimed) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

19 Source : LifetimedList.cs
with Apache License 2.0
from JetBrains

public static IEnumerable<TOut> Select<TIn, TOut>(this LifetimedList<TIn> source, Func<ValueLifetimed<TIn>, TOut> selector)
    {
      foreach (var value in source)
        yield return selector(value);
    }

19 Source : LifetimedList.cs
with Apache License 2.0
from JetBrains

public static IEnumerable<ValueLifetimed<T>> Where<T>(this LifetimedList<T> source, Func<ValueLifetimed<T>, bool> predicate)
    {
      foreach (var value in source)
      {
        if (predicate(value))
          yield return value;
      }
    }