public FatValueType[] StructLinq_ValueDelegate() { var predicate = new FatValueTypeIsEven(); var selector = new TripleOfFatValueType(); return(source.ToRefStructEnumerable() .Where(ref predicate, x => x) .Select(ref selector, x => x, x => x) .ToArray(x => x)); }
public List <FatValueType> StructLinq_IFunction() { var predicate = new FatValueTypeIsEven(); var selector = new TripleOfFatValueType(); return(source.ToRefStructEnumerable() .Where(ref predicate, x => x) .Select(ref selector, x => x, x => x) .ToList(x => x)); }
public FatValueType StructLinq_IFunction() { var sum = default(FatValueType); var selector = new TripleOfFatValueType(); foreach (var item in source .ToRefStructEnumerable() .Select(ref selector, x => x, x => x)) { sum += item; } return(sum); }
public FatValueType StructLinq_ValueDelegate() { var predicate = new FatValueTypeIsEven(); var selector = new TripleOfFatValueType(); var items = source .ToRefStructEnumerable() .Where(ref predicate, x => x) .Select(ref selector, x => x, x => x); var sum = default(FatValueType); foreach (var item in items) { sum += item; } return(sum); }
public FatValueType StructLinq_ValueDelegate() { var selector = new TripleOfFatValueType(); var items = source .ToRefStructEnumerable() .Skip(Skip, x => x) .Take(Count, x => x) .Select(ref selector, x => x, x => x); var sum = default(FatValueType); foreach (var item in items) { sum += item; } return(sum); }