コード例 #1
0
        public static T MaxMeta <TCollect, T>(ref TCollect collect, Func <T, T, bool> firstGreat)
            where TCollect : struct, ICollectionWrapper <T>
        {
            var func = new FuncFunctor <T, T, bool>(firstGreat);

            return(MaxOperator.MaxMeta <TCollect, FuncFunctor <T, T, bool>, T>(ref collect, ref func));
        }
コード例 #2
0
ファイル: AggregateOperator.cs プロジェクト: blowin/LinqMeta
        public static T AggregateMeta <TCollect, T>(ref TCollect collect, Func <T, T, T> folder)
            where TCollect : struct, ICollectionWrapper <T>
        {
            var functor = new FuncFunctor <T, T, T>(folder);

            return(AggregateMeta <TCollect, FuncFunctor <T, T, T>, T>(ref collect, ref functor));
        }