コード例 #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);
    }
コード例 #2
0
    public FatValueType Faslinq()
    {
        var items =
            ListExtensions.Where(source, item => item.IsEven());
        var sum = default(FatValueType);

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