Пример #1
0
    public int Faslinq()
    {
        var items =
            ListExtensions.Where(source, item => item.IsEven());
        var sum = 0;

        foreach (var item in items)
        {
            sum += item;
        }
        return(sum);
    }
    public FatValueType Faslinq()
    {
        var items =
            ListExtensions.Where(source, item => item.IsEven());
        var sum = default(FatValueType);

        foreach (var item in items)
        {
            sum += item;
        }
        return(sum);
    }