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 predicate = new FatValueTypeIsEven(); foreach (ref readonly var item in source .ToRefStructEnumerable() .Where(ref predicate, x => x)) { sum += item; } return(sum); }
public FatValueType StructLinq_IFunction() { var sum = default(FatValueType); var predicate = new FatValueTypeIsEven(); var selector = new DoubleOfFatValueType(); foreach (var item in source .ToRefStructEnumerable() .Where(ref predicate, x => x) .Select(ref selector, x => x, x => x)) { sum += item; } return(sum); }
public FatValueType StructLinq_ValueDelegate() { var predicate = new FatValueTypeIsEven(); var items = source .ToRefStructEnumerable() .Skip(Skip, x => x) .Take(Count, x => x) .Where(ref predicate, x => x); var sum = default(FatValueType); foreach (ref readonly var item in items) { sum += item; } return(sum); }