CKTIS / C#
data processing pipelines: praktická referencia
data processing pipelines: praktická referencia: Dátová pipeline skladá po sebe idúce fázy získania, filtrovania, transformácie a redukcie.
Verzia: C# language and .NET 10 reference runtime
Syntax
// data pipelinesDátová pipeline skladá po sebe idúce fázy získania, filtrovania, transformácie a redukcie.
Udržiavajte fázy čisté a bod materializácie zvoľte výslovne.
Odložené LINQ môže opakovať I/O alebo drahé selektory.
Chyba prvku, prázdny prúd a backpressure vyžadujú stanovené pravidlá.
Úplný program skutočne používa data processing pipelines; presne očakávaný stdout je 20,40.
Príklady
using System;
using System.Buffers;
using System.Collections.Concurrent;
using System.Collections.Frozen;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Channels;
using System.Threading.Tasks;
using Number = System.Int32;
var result = new[] { 1, 2, 3, 4 }.Where(value => value % 2 == 0).Select(value => value * 10).ToArray(); Console.WriteLine(string.Join(",", result));
Výsledok
20,40
Úplný program skutočne používa `data processing pipelines`; presne očakávaný stdout je `20,40`.