Alprog.Data
1.0.1
dotnet add package Alprog.Data --version 1.0.1
NuGet\Install-Package Alprog.Data -Version 1.0.1
<PackageReference Include="Alprog.Data" Version="1.0.1" />
paket add Alprog.Data --version 1.0.1
#r "nuget: Alprog.Data, 1.0.1"
// Install Alprog.Data as a Cake Addin
#addin nuget:?package=Alprog.Data&version=1.0.1
// Install Alprog.Data as a Cake Tool
#tool nuget:?package=Alprog.Data&version=1.0.1
Alprog.Data
Alprog.Data
is a extendable system for processing data.
Conception
In Alprog.Data
are extension methods for processing data and not only.
Go to examples!
Simplification of If/Else constructions
Okey. For begin, let's change your mean about if/else constructions
.
Default:
if (a > 10)
{
...
}
else if (a > 5)
{
...
}
else
{
...
}
With Alprog.Data extension methods:
a.If(x => x > 10).Then(...)
.ElseIf(x => x > 5).Then(...)
.Else(...);
As you noticed, here if/else construction
looks like English language. It's easy for writing the code.
How it work and underwater stones
Extension methods for processing lists and arrays
Default:
foreach (object item in items)
{
...
}
Or:
for (int i = 0; i < items.Lenght; i++)
{
...
}
It can be easy with Alprog.Data! If just for example output somewhere:
items.EveryItem(x => ...);
If need to process data:
items.Process(x => ...);
Filtering data:
items.FilterBy(x => ...); //here lamda-function must return boolean value!
And transform data to other type:
items.Transform(x => ...);
These methods can be called in any type, which inherts IEnumerable
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.