public static bool Contains <TSource>(this ReadOnlyMemory <TSource> source, TSource value) { var aggregate = new Contains <TSource>(value); MemoryNode.ProcessMemory(source, ref aggregate); return(aggregate.GetResult()); }